Skip to content

Commit cae9f29

Browse files
authored
fix(service): ms intervals treated as seconds (#78)
Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
1 parent 66e1dc0 commit cae9f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async fn main() -> Result<(), std::io::Error> {
8181
network_subgraph,
8282
config.ethereum.indexer_address,
8383
1,
84-
Duration::from_secs(config.network_subgraph.allocation_syncing_interval),
84+
Duration::from_millis(config.network_subgraph.allocation_syncing_interval),
8585
);
8686

8787
// TODO: Chain ID should be a config
@@ -118,7 +118,7 @@ async fn main() -> Result<(), std::io::Error> {
118118
let escrow_accounts = escrow_accounts(
119119
escrow_subgraph,
120120
config.ethereum.indexer_address,
121-
Duration::from_secs(config.escrow_subgraph.escrow_syncing_interval),
121+
Duration::from_millis(config.escrow_subgraph.escrow_syncing_interval),
122122
);
123123

124124
let tap_manager = TapManager::new(

0 commit comments

Comments
 (0)