Skip to content

Commit

Permalink
fix: Backoff next can now be private
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Jan 14, 2022
1 parent e89cad5 commit d79197d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Backoff {
}

/// Returns the next backoff duration to wait for
pub fn next(&mut self) -> Duration {
fn next(&mut self) -> Duration {
let range = self.init_backoff..(self.next_backoff_secs * self.base);

let rand_backoff = match self.rng.as_mut() {
Expand Down

0 comments on commit d79197d

Please sign in to comment.