diff --git a/README.md b/README.md index 285ba65..f755d31 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ Or create client with exponential backoff initalTimeout := 2*time.Millisecond // Inital timeout maxTimeout := 9*time.Millisecond // Max time out -exponentFactor := 2 // Multiplier +exponentFactor := float64(2) // Multiplier maximumJitterInterval := 2*time.Millisecond // Max jitter interval. It must be more than 1*time.Millisecond backoff := heimdall.NewExponentialBackoff(initalTimeout, maxTimeout, exponentFactor, maximumJitterInterval)