Skip to content

Commit

Permalink
Merge pull request #4 from movementlabsxyz/musitdev/correct_chain_id_…
Browse files Browse the repository at this point in the history
…init

Musitdev/correct chain id init
  • Loading branch information
musitdev authored Nov 4, 2024
2 parents 8e83cde + 1d7627e commit 65185e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/processor/src/grpc_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ pub async fn get_chain_id(
indexer_grpc_reconnection_timeout_secs: Duration,
auth_token: String,
processor_name: String,
starting_version_from_db: u64,
) -> u64 {
info!(
processor_name = processor_name,
Expand All @@ -251,8 +252,8 @@ pub async fn get_chain_id(
indexer_grpc_http2_ping_interval,
indexer_grpc_http2_ping_timeout,
indexer_grpc_reconnection_timeout_secs,
1,
Some(2),
starting_version_from_db,
Some(starting_version_from_db + 1),
auth_token.clone(),
processor_name.to_string(),
)
Expand Down
1 change: 1 addition & 0 deletions rust/processor/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ impl Worker {
self.grpc_http2_config.grpc_connection_timeout_secs(),
self.auth_token.clone(),
processor_name.to_string(),
starting_version_from_db,
)
.await;
self.check_or_update_chain_id(chain_id as i64)
Expand Down

0 comments on commit 65185e5

Please sign in to comment.