fix(pkg/http_client): Printf is smarter than you think
Printf determines what the duration unit is and prints it accordingly.
This commit is contained in:
@@ -111,7 +111,7 @@ func (h *HttpClient) Get(rawurl string) ([]byte, error) {
|
||||
duration = h.MaxBackoff
|
||||
}
|
||||
|
||||
log.Printf("Sleeping for %d seconds", duration)
|
||||
log.Printf("Sleeping for %v...", duration)
|
||||
|
||||
time.Sleep(duration)
|
||||
}
|
||||
|
Reference in New Issue
Block a user