From 89e0fe22730de06589ca67a15688c89233c12a43 Mon Sep 17 00:00:00 2001 From: Public Profile Date: Sat, 24 Jul 2021 15:04:34 -0700 Subject: [PATCH] [docs] fix missing cast --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)