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.