diff --git a/src/backoff.rs b/src/backoff.rs index 21496792..09412b05 100644 --- a/src/backoff.rs +++ b/src/backoff.rs @@ -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() {