Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 17, 2024
1 parent b59d78d commit c7d5ca2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/threshold-signature-server/src/helpers/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,8 @@ pub async fn check_node_prerequisites(app_state: AppState) {
Ok((api, rpc))
};

// Note: By default this will wait 15 minutes before it stops retry attempts.
let mut backoff = backoff::ExponentialBackoff::default();
// Never give up trying to connect
backoff.max_elapsed_time = None;
let backoff = backoff::ExponentialBackoff { max_elapsed_time: None, ..Default::default() };
match backoff::future::retry(backoff.clone(), connect_to_substrate_node).await {
Ok((api, rpc)) => {
tracing::info!("Sucessfully connected to Substrate node!");
Expand Down

0 comments on commit c7d5ca2

Please sign in to comment.