diff --git a/Config.toml b/Config.toml index db81627..9c616e8 100644 --- a/Config.toml +++ b/Config.toml @@ -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 diff --git a/lib/hub/src/main.rs b/lib/hub/src/main.rs index b531149..19237b3 100644 --- a/lib/hub/src/main.rs +++ b/lib/hub/src/main.rs @@ -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] @@ -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");