diff --git a/internal/storage/memory/memory.go b/internal/storage/memory/memory.go index 1a56106106..b3f70e6c09 100644 --- a/internal/storage/memory/memory.go +++ b/internal/storage/memory/memory.go @@ -139,5 +139,7 @@ func (s *Storage) gc() { // Return database client func (s *Storage) Conn() map[string]entry { + s.mux.RLock() + defer s.mux.RUnlock() return s.db }