From 7ce0e4f18c031b6cc81838fda63fd5398f39e8b0 Mon Sep 17 00:00:00 2001 From: Manases Leal Date: Wed, 11 Jan 2023 14:57:04 -0600 Subject: [PATCH] Increased retry wait time from power of 2 to 2.5 --- client/topic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/topic.go b/client/topic.go index 8d70a0b..cddc008 100644 --- a/client/topic.go +++ b/client/topic.go @@ -157,7 +157,7 @@ func createTopic(c Client, t *NewTopic) (*Topic, error) { if err != nil { fmt.Printf("%s\n\n",err) fmt.Println("Waiting to retry...") - time.Sleep(time.Duration(math.Pow(float64(retry), 2)) * time.Second) + time.Sleep(time.Duration(math.Pow(float64(retry), 2.5)) * time.Second) fmt.Printf("Starting retry attempt %d of %d\n", retry, retryCap) res, err := c.doRequest(req) _,_ = res, err