diff --git a/src/config.rs b/src/config.rs index b77ce01..35037bb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -311,8 +311,8 @@ mod tests { let config = load_config(std::iter::empty()).unwrap(); - assert_eq!(config.service.statsd_enabled, true); - assert_eq!(config.service.datadog_enabled, true); + assert!(config.service.statsd_enabled); + assert!(config.service.datadog_enabled); assert_eq!(config.service.escalation_interval, Duration::from_secs(60)); assert_eq!( config.database.to_connection_string(), diff --git a/src/tasks/escalate.rs b/src/tasks/escalate.rs index 1c5d9a8..55367f6 100644 --- a/src/tasks/escalate.rs +++ b/src/tasks/escalate.rs @@ -38,7 +38,7 @@ async fn escalate_txs(app: &App) -> eyre::Result<()> { let mut futures = FuturesUnordered::new(); for (relayer_id, txs) in txs_for_escalation { - futures.push(escalate_relayer_txs(&app, relayer_id, txs)); + futures.push(escalate_relayer_txs(app, relayer_id, txs)); } while let Some(result) = futures.next().await {