mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +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 {
|
func NewClosableMutex() *ClosableMutex {
|
||||||
ch := make(chan struct{}, 1)
|
ch := make(chan struct{}, 1)
|
||||||
ch <- struct{}{}
|
ch <- struct{}{}
|
||||||
return &ClosableMutex{ch: ch}
|
return &ClosableMutex{ch}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TryLock attempts to lock cm.
|
// TryLock attempts to lock cm.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue