mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-16 13:00:52 +02:00
mutex return (#280)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
parent
5a25f07bfb
commit
c1fb07fcda
1 changed files with 0 additions and 2 deletions
|
|
@ -53,11 +53,9 @@ func LockWithContext(ctx context.Context, s string) {
|
|||
uid := ctx.Value("uid").(string)
|
||||
if len(uid) == 0 {
|
||||
log.Error("[Mutex] LockWithContext: uid is empty!")
|
||||
return
|
||||
}
|
||||
if len(s) == 0 {
|
||||
log.Error("[Mutex] LockWithContext: s is empty!")
|
||||
return
|
||||
}
|
||||
// sync mutex to sync checkSoftLock with the increment of nLocks
|
||||
// same user can't lock the same object multiple times
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue