This commit is contained in:
Yun
2023-09-09 23:32:37 +08:00
parent a9570cb743
commit fdc303e618
5 changed files with 16 additions and 20 deletions
+1 -4
View File
@@ -81,10 +81,7 @@ func (g *globalLock) Unlock() bool {
if resp != "OK" {
log.Println("globalLock Unlock", resp, err, g.uniqueKey, g.value)
}
if resp == "OK" {
g.cancel()
return true
}
g.cancel()
return false
}