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:
Camilo Aguilar 2014-05-22 14:53:54 -04:00
parent 8ca3c2ed1f
commit cec0926c5c

View File

@ -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)
}