mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-16 13:00:52 +02:00
fix nLocks (#241)
This commit is contained in:
parent
07ccc6cc28
commit
35d5ed8d8e
1 changed files with 2 additions and 1 deletions
|
|
@ -79,8 +79,9 @@ func UnlockWithContext(ctx context.Context, s string) {
|
|||
} else {
|
||||
log.Tracef("[Mutex] Skip unlock (nLocks: %d)", nLocks)
|
||||
}
|
||||
mutexMap.Remove(fmt.Sprintf("nLocks:%s", uid))
|
||||
Unlock(fmt.Sprintf("mutex-sync:%s:%s", s, uid))
|
||||
mutexMap.Remove(fmt.Sprintf("mutex-sync:%s:%s", s, uid))
|
||||
//mutexMap.Remove(fmt.Sprintf("mutex-sync:%s:%s", s, uid))
|
||||
}
|
||||
|
||||
// Lock locks a mutex in the mutexMap. If the mutex is already in the map, it locks the current call.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue