From bcf3ded60a797f35a632e990cf433ba9979f63f9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 7 Jun 2024 23:59:35 +0200 Subject: [PATCH] wip --- lib/logstorage/bloomfilter.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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] }