mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-25 23:23:11 +00:00
fix: merge fix
This commit is contained in:
@@ -1,28 +1,30 @@
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use anyhow::Result;
|
||||
use indexer_service::{BackoffConfig, BedrockClientConfig, ChannelId, IndexerConfig};
|
||||
use indexer_service::IndexerConfig;
|
||||
use url::Url;
|
||||
|
||||
pub fn indexer_config(bedrock_addr: SocketAddr) -> IndexerConfig {
|
||||
let channel_id: [u8; 32] = [0u8, 1]
|
||||
.repeat(16)
|
||||
.try_into()
|
||||
.unwrap_or_else(|_| unreachable!());
|
||||
let channel_id = ChannelId::try_from(channel_id).expect("Failed to create channel ID");
|
||||
todo!()
|
||||
|
||||
IndexerConfig {
|
||||
resubscribe_interval_millis: 1000,
|
||||
backoff: BackoffConfig {
|
||||
start_delay_millis: 100,
|
||||
max_retries: 10,
|
||||
},
|
||||
bedrock_client_config: BedrockClientConfig {
|
||||
addr: addr_to_http_url(bedrock_addr).expect("Failed to convert bedrock addr to URL"),
|
||||
auth: None,
|
||||
},
|
||||
channel_id,
|
||||
}
|
||||
// let channel_id: [u8; 32] = [0u8, 1]
|
||||
// .repeat(16)
|
||||
// .try_into()
|
||||
// .unwrap_or_else(|_| unreachable!());
|
||||
// let channel_id = ChannelId::try_from(channel_id).expect("Failed to create channel ID");
|
||||
|
||||
// IndexerConfig {
|
||||
// resubscribe_interval_millis: 1000,
|
||||
// backoff: BackoffConfig {
|
||||
// start_delay_millis: 100,
|
||||
// max_retries: 10,
|
||||
// },
|
||||
// bedrock_client_config: BedrockClientConfig {
|
||||
// addr: addr_to_http_url(bedrock_addr).expect("Failed to convert bedrock addr to URL"),
|
||||
// auth: None,
|
||||
// },
|
||||
// channel_id,
|
||||
// }
|
||||
}
|
||||
|
||||
fn addr_to_http_url(addr: SocketAddr) -> Result<Url> {
|
||||
|
||||
@@ -44,7 +44,6 @@ pub struct TestContext {
|
||||
_indexer_handle: IndexerHandle,
|
||||
_temp_sequencer_dir: TempDir,
|
||||
_temp_wallet_dir: TempDir,
|
||||
_temp_indexer_dir: Option<TempDir>,
|
||||
}
|
||||
|
||||
impl TestContext {
|
||||
|
||||
Reference in New Issue
Block a user