mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
round wait times to the nearest millisecond
This commit is contained in:
parent
1e6dee15b2
commit
f72a6fa011
3 changed files with 5 additions and 4 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue