mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
update
This commit is contained in:
parent
53dc219a81
commit
9fe0f42c03
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue