From: Matt Joiner Date: Tue, 5 Aug 2025 09:55:16 +0000 (+1000) Subject: Set deferred unique actions map to nil rather than clear X-Git-Tag: v1.59.0~2^2~62 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=59047c1ec01e1b9dcdc28f0a078ef9261697a41c;p=btrtrc.git Set deferred unique actions map to nil rather than clear --- diff --git a/deferrwl.go b/deferrwl.go index 0af2e196..dd8011d0 100644 --- a/deferrwl.go +++ b/deferrwl.go @@ -34,7 +34,7 @@ func (me *lockWithDeferreds) Unlock() { panic(fmt.Sprintf("num deferred changed while running: %v -> %v", startLen, len(me.unlockActions))) } me.unlockActions = me.unlockActions[:0] - clear(me.uniqueActions) + me.uniqueActions = nil me.unlocking = false me.internal.Unlock() }