Skip to content

Commit

Permalink
rename to just indexer_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
haardikk21 authored Jan 29, 2024
1 parent 89264e4 commit 055a06e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ id_registry_address = "0x00000000Fc6c5F01Fc30151999387Bb99A9f489b"
key_registry_address = "0x00000000Fc1237824fb747aBDE0FF18990E59b7e"
storage_registry_address = "0x00000000fcce7f938e7ae6d3c335bd6a1a7c593d"
abi_dir = "./lib/eth/abis"
indexer_interval_in_secs = "60"
indexer_interval = "60" # This value is in seconds
4 changes: 2 additions & 2 deletions lib/hub/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct Config {
key_registry_address: String,
storage_registry_address: String,
abi_dir: String,
indexer_interval_in_secs: u64,
indexer_interval: u64,
}

#[tokio::main]
Expand Down Expand Up @@ -93,7 +93,7 @@ async fn main() {
.unwrap();

// Subscribe to new events asynchronously
let subscribe_task = indexer.subscribe(latest_block_num + 1, config.indexer_interval_in_secs);
let subscribe_task = indexer.subscribe(latest_block_num + 1, config.indexer_interval);

let secret_key_hex = config.farcaster_priv_key;
let mut secret_key_bytes = hex::decode(secret_key_hex).expect("Invalid hex string");
Expand Down

0 comments on commit 055a06e

Please sign in to comment.