diff --git a/pkg/sorted/mem.go b/pkg/sorted/mem.go index e30b519af..0c2be97a3 100644 --- a/pkg/sorted/mem.go +++ b/pkg/sorted/mem.go @@ -45,10 +45,10 @@ type memKeys struct { db *memdb.DB } -func (s *memKeys) Wipe() error { - s.mu.Lock() - defer s.mu.Unlock() - s.db = memdb.New(comparer.DefaultComparer, 128) +func (mk *memKeys) Wipe() error { + mk.mu.Lock() + defer mk.mu.Unlock() + mk.db = memdb.New(comparer.DefaultComparer, 128) return nil }