round wait times to the nearest millisecond

This commit is contained in:
Shivaram Lingamneni 2023-01-08 06:36:04 -05:00
parent 1e6dee15b2
commit f72a6fa011
3 changed files with 5 additions and 4 deletions

View file

@ -97,5 +97,5 @@ type ThrottleError struct {
}
func (te *ThrottleError) Error() string {
return fmt.Sprintf(`Please wait at least %v and try again`, te.Duration)
return fmt.Sprintf(`Please wait at least %v and try again`, te.Duration.Round(time.Millisecond))
}