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
r:=minRandomSleep+rand.Intn(ms-minRandomSleep+offsetMS) // ensures that the random range is [1, i]. To avoid sleeping for 0 seconds (0 ms).
140
+
r:=minRandomSleep+rand.Intn(ms-minRandomSleep+offsetMS) //nolint:gosec // ensures that the random range is [1, i]. To avoid sleeping for 0 seconds (0 ms).
141
141
142
142
logrus.Infof("Randomized execution. Sleeping for %d milliseconds.", r)
143
143
144
144
time.Sleep(time.Duration(r) *time.Millisecond)
145
145
}
146
146
147
-
// sleepBy takes a int input, and sleeps for that duration
147
+
// sleepBy takes a int input, and sleeps for that duration.
148
148
funcsleepBy(iint) {
149
149
logrus.Infof("Holding lock - Sleeping for %d seconds.", i)
0 commit comments