This commit is contained in:
Aliaksandr Valialkin 2024-06-07 23:59:35 +02:00
parent 483d19349e
commit bcf3ded60a
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -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]
}