diff --git a/lib/logstorage/bloomfilter.go b/lib/logstorage/bloomfilter.go index 9c0a5dd6a..312158f46 100644 --- a/lib/logstorage/bloomfilter.go +++ b/lib/logstorage/bloomfilter.go @@ -32,10 +32,7 @@ type bloomFilter struct { } func (bf *bloomFilter) reset() { - bits := bf.bits - for i := range bits { - bits[i] = 0 - } + clear(bf.bits) bf.bits = bits[:0] }