This commit is contained in:
xing 2022-10-13 16:58:37 +08:00
parent edc0e75d3a
commit 7adad1c2e7

2
cache/map.go vendored
View File

@ -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)
}