You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its somewhat non-intuitive when setting a delay which takes a time.Duration that the units are in microseconds. Its easy to write code like this and think its valid.
This is a huge bug in the usability of this library.
I just spent a couple hours tracking down why my app was appearing to just hang. My configuration of retry.Attempts(5), retry.Delay(1*time.Minute) was calling time.Sleep for 16h40m0s.
A time.Duration is represented in nanoseconds. The fact that this library multiplies by microseconds by default completely breaks the standard time math in golang.
Its somewhat non-intuitive when setting a delay which takes a
time.Duration
that the units are in microseconds. Its easy to write code like this and think its valid.The text was updated successfully, but these errors were encountered: