From 28db8795ee7504d2627cf3a91a423ef88d19e139 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 9 May 2024 20:19:01 +0200 Subject: [PATCH] wip --- lib/logstorage/tokenizer.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/logstorage/tokenizer.go b/lib/logstorage/tokenizer.go index e54bf841a..881b69890 100644 --- a/lib/logstorage/tokenizer.go +++ b/lib/logstorage/tokenizer.go @@ -31,10 +31,7 @@ type tokenizer struct { } func (t *tokenizer) reset() { - m := t.m - for k := range m { - delete(m, k) - } + clear(t.m) } func tokenizeString(dst map[string]struct{}, s string) {