Skip to content

Commit

Permalink
upd comment
Browse files Browse the repository at this point in the history
  • Loading branch information
peakle committed Aug 7, 2023
1 parent eecc260 commit 72f3e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (wp *WorkerPool) spawnWorker() {
wp.wg.Add(1)

go func() {
// jitter depends on global rand state, but it's not the ok here
// jitter depends on global rand state, but it's ok here
jitter := func() time.Duration { return time.Millisecond * time.Duration(rand.Int63n(wp.cfg.TimeoutJitter)) }
// https://en.wikipedia.org/wiki/Exponential_backoff
// nolint:gosec
Expand Down

0 comments on commit 72f3e3d

Please sign in to comment.