diff --git a/src/utils/locker.go b/src/utils/locker.go index 232caa65..3712cfc2 100644 --- a/src/utils/locker.go +++ b/src/utils/locker.go @@ -8,6 +8,7 @@ type Locker struct { func (m *Locker) Lock(key string) func() { value, _ := m.mutexes.LoadOrStore(key, &sync.Mutex{}) + mtx, ok := value.(*sync.Mutex) if ok { mtx.Lock()