优化
This commit is contained in:
parent
edc0e75d3a
commit
7adad1c2e7
2
cache/map.go
vendored
2
cache/map.go
vendored
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user