change error message

This commit is contained in:
iacore
2024-03-17 12:01:13 +00:00
parent 16bfaf4053
commit d41a1ef3e1
+1 -1
View File
@@ -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))