From d79197d59824d033a1fc8b6f096eff278363dd77 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 14 Jan 2022 16:47:34 -0500 Subject: [PATCH] fix: Backoff next can now be private --- src/backoff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {