Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
arriven committed Jul 31, 2022
1 parent 2581d3e commit a5d2a2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a5d2a2b

Please sign in to comment.