From 4520fb2a2a711a881b34fec683a01ea35db3fa94 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Mon, 29 Apr 2019 12:12:14 -0700 Subject: [PATCH] Spelling mistakes fix. --- retry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retry.go b/retry.go index 68b13cf..1d11256 100644 --- a/retry.go +++ b/retry.go @@ -28,7 +28,7 @@ import ( type Backoff struct { Duration time.Duration // the base duration - Factor float64 // Duration is multipled by factor each iteration + Factor float64 // Duration is multiplied by a factor each iteration Jitter float64 // The amount of jitter applied each iteration Steps int // Exit with error after this many steps } @@ -77,7 +77,7 @@ func ExponentialBackoff(backoff Backoff, logger Logger, condition ConditionFunc) adjusted = Jitter(duration, backoff.Jitter) } - logger.Printf("A retriable error occurred during function call, backing off for %v before retrying\n", adjusted) + logger.Printf("A retryable error occurred during function call, backing off for %v before retrying\n", adjusted) time.Sleep(adjusted) duration = time.Duration(float64(duration) * backoff.Factor) }