Replies: 1 comment
-
@mxmaxime For thread-safe purposes when calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was looking at the code of the jitter/backoff implementation, and I found something that peaked my curiosity.
retry.go
Why did you wrap the rand in a lock? I guess it's because it needs to be thread-safe to use in != goroutines but still uses the methods on rand and not the top level functions of rand?
Thanks!
Have a nice one.
Beta Was this translation helpful? Give feedback.
All reactions