Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Increased retry wait time from power of 2 to 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Manases-Leal committed Jan 11, 2023
1 parent 7631901 commit 7ce0e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ce0e4f

Please sign in to comment.