From 7adad1c2e7aaf0622010d5bcbb6a30ae1b3a2805 Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 13 Oct 2022 16:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache/map.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cache/map.go b/cache/map.go index 25f87f4..d58e585 100644 --- a/cache/map.go +++ b/cache/map.go @@ -93,8 +93,6 @@ func (m *MapCache[K, V]) Get(k K) V { } func (m *MapCache[K, V]) Set(k K, v V) { - m.mutex.Lock() - defer m.mutex.Unlock() m.set(k, v) }