Skip to content

Commit

Permalink
gateway retry limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Aug 3, 2024
1 parent 2784918 commit 9d7f7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/send_and_confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl Miner {
// Retry
std::thread::sleep(Duration::from_millis(GATEWAY_DELAY));
attempts += 1;
if attempts > GATEWAY_RETRIES {
if attempts >= GATEWAY_RETRIES {
progress_bar.finish_with_message(format!("{}: Max retries", "ERROR".bold().red()));
return Err(ClientError {
request: None,
Expand Down

0 comments on commit 9d7f7ba

Please sign in to comment.