Skip to content

Commit

Permalink
Fix sleep for first retry attempt
Browse files Browse the repository at this point in the history
* Bug introduced in: b499ca7
  • Loading branch information
Dean-Coakley authored Apr 9, 2019
1 parent d35d429 commit 770d447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func createClientWithRetries(getClient func() (interface{}, error), retries uint
if err == nil {
return nginxClient, nil
}
if i > 0 {
if i < int(retries) {
log.Printf("Could not create Nginx Client. Retrying in %v...", retryInterval)
time.Sleep(retryInterval)
}
Expand Down

0 comments on commit 770d447

Please sign in to comment.