mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
change error message
This commit is contained in:
@@ -18,7 +18,7 @@ func (km *Kmutex) Unlock(key any) uint64 {
|
||||
for {
|
||||
actual, ok := km.Map.Load(key)
|
||||
if !ok {
|
||||
panic("what")
|
||||
panic("impossible! memory corruption?")
|
||||
}
|
||||
if actual.(uint64) == 1 {
|
||||
deleted := km.Map.CompareAndDelete(key, actual.(uint64))
|
||||
|
||||
Reference in New Issue
Block a user