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

Commit

Permalink
Merge pull request #5 from Cox-Automotive/feature/US956382_backoff_re…
Browse files Browse the repository at this point in the history
…try_for_kafka

Changed Errorf to Printf
  • Loading branch information
Manases-Leal committed Nov 17, 2022
2 parents 887a722 + 3e64db4 commit 7631901
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 7631901

Please sign in to comment.