Skip to content

Commit

Permalink
fix: no retry_after to avoid looping
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi authored and joshuef committed Dec 19, 2023
1 parent 32ada99 commit 100985c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sn_networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ impl Network {
warn!("Failed to PUT record with key: {pretty_key:?} to network (retry via backoff) with error: {err:?}");

if cfg.re_attempt {
BackoffError::Transient { err, retry_after: Some(Duration::from_millis(rand::thread_rng().gen_range(1500..5000))) }
BackoffError::Transient { err, retry_after: None }
} else {
BackoffError::Permanent(err)
}
Expand Down

0 comments on commit 100985c

Please sign in to comment.