From 9fe0f42c03a157e7c82b6bf63ab3c36e46de84cb Mon Sep 17 00:00:00 2001 From: georgehao Date: Tue, 4 Feb 2025 17:36:26 +0800 Subject: [PATCH] update --- internal/syncx/mutex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/syncx/mutex.go b/internal/syncx/mutex.go index f94868c4ab..7fca61c315 100644 --- a/internal/syncx/mutex.go +++ b/internal/syncx/mutex.go @@ -27,7 +27,7 @@ type ClosableMutex struct { func NewClosableMutex() *ClosableMutex { ch := make(chan struct{}, 1) ch <- struct{}{} - return &ClosableMutex{ch: ch} + return &ClosableMutex{ch} } // TryLock attempts to lock cm.