pkg/sorted: rename a receiver to appease staticcheck

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
This commit is contained in:
Brad Fitzpatrick 2024-01-14 16:38:40 -08:00
parent 9d0c73955a
commit 2e5266741a
1 changed files with 4 additions and 4 deletions

View File

@ -45,10 +45,10 @@ type memKeys struct {
db *memdb.DB db *memdb.DB
} }
func (s *memKeys) Wipe() error { func (mk *memKeys) Wipe() error {
s.mu.Lock() mk.mu.Lock()
defer s.mu.Unlock() defer mk.mu.Unlock()
s.db = memdb.New(comparer.DefaultComparer, 128) mk.db = memdb.New(comparer.DefaultComparer, 128)
return nil return nil
} }