diff --git a/pkg/truncindex/truncindex.go b/pkg/truncindex/truncindex.go index a93fe1d6e4..dba52d3626 100644 --- a/pkg/truncindex/truncindex.go +++ b/pkg/truncindex/truncindex.go @@ -121,8 +121,6 @@ func (idx *TruncIndex) Get(s string) (string, error) { // Iterate iterates over all stored IDs, and passes each of them to the given handler. func (idx *TruncIndex) Iterate(handler func(id string)) { - idx.RLock() - defer idx.RUnlock() idx.trie.Visit(func(prefix patricia.Prefix, item patricia.Item) error { handler(string(prefix)) return nil