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) {