We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3916c commit f7fec59Copy full SHA for f7fec59
embedded/store/indexer.go
@@ -501,7 +501,7 @@ func (idx *indexer) handleWriteStalling(err error) error {
501
if err := idx.store.FlushIndexes(0, false); err != nil {
502
return err
503
}
504
-
+ // NOSONAR (rand is fine here)
505
sleepTime := writeStallingSleepDurationMin + time.Duration(rand.Intn(int(writeStallingSleepDurationMax-writeStallingSleepDurationMin+1)))
506
time.Sleep(sleepTime)
507
return nil
0 commit comments