Skip to content

Commit c0f70ec

Browse files
authored
fixed a merge conflict where config retry duration not used (#139)
1 parent 2153313 commit c0f70ec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bin/onlyswaps-verifier/src/verifier.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use agent_utils::monitoring::init_monitoring;
1313
use alloy::signers::local::PrivateKeySigner;
1414
use config::file::load_mapped_config_file;
1515
use std::sync::Arc;
16-
use std::time::Duration;
1716
use tokio_stream::StreamExt;
1817

1918
pub async fn start_verifier(args: StartArgs) -> anyhow::Result<()> {
@@ -58,8 +57,7 @@ async fn run_onlyswaps(app_config: &AppConfig) -> anyhow::Result<()> {
5857

5958
// the `retry_scheduler` manages receives `Verification`s that have failed and schedules them at a later time
6059
// with respect to the retry duration
61-
let retry_duration = Duration::from_secs(12);
62-
let retry_scheduler = RetryScheduler::new(retry_duration);
60+
let retry_scheduler = RetryScheduler::new(app_config.timeout.retry_duration);
6361
let retry_scheduler_tx = retry_scheduler.tx();
6462

6563
// the `verification_bus` combines recent historical events, live events, and retried events

0 commit comments

Comments
 (0)