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:
parent
8ca3c2ed1f
commit
cec0926c5c
@ -111,7 +111,7 @@ func (h *HttpClient) Get(rawurl string) ([]byte, error) {
|
|||||||
duration = h.MaxBackoff
|
duration = h.MaxBackoff
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Sleeping for %d seconds", duration)
|
log.Printf("Sleeping for %v...", duration)
|
||||||
|
|
||||||
time.Sleep(duration)
|
time.Sleep(duration)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user