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

Commit

Permalink
Changed Errorf to Printf
Browse files Browse the repository at this point in the history
  • Loading branch information
Manases-Leal committed Nov 17, 2022
1 parent 887a722 commit 3e64db4
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 @@ -155,7 +155,7 @@ func createTopic(c Client, t *NewTopic) (*Topic, error) {
res, err := c.doRequest(req)
for retry := 1; retry <= retryCap; retry++{
if err != nil {
fmt.Errorf("%s\n",err)
fmt.Printf("%s\n\n",err)
fmt.Println("Waiting to retry...")
time.Sleep(time.Duration(math.Pow(float64(retry), 2)) * time.Second)
fmt.Printf("Starting retry attempt %d of %d\n", retry, retryCap)
Expand Down

0 comments on commit 3e64db4

Please sign in to comment.