From 2e5266741af89e34d7778cbb80ed76494a9c1602 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 14 Jan 2024 16:38:40 -0800 Subject: [PATCH] pkg/sorted: rename a receiver to appease staticcheck Signed-off-by: Brad Fitzpatrick --- pkg/sorted/mem.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }