mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
fix err
This commit is contained in:
@ -36,8 +36,8 @@ func (m *rw_map[K, V]) Get(key K) (V, bool) {
|
||||
}
|
||||
|
||||
func (m *rw_map[K, V]) Delete(key K) {
|
||||
m.mu.RLock()
|
||||
defer m.mu.RUnlock()
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
|
||||
m.m.Delete(key)
|
||||
}
|
||||
|
Reference in New Issue
Block a user