mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
add pkg/strategy/ewoDgtrd/trylock_18.go
This commit is contained in:
parent
343434685b
commit
b4a79479fd
10
pkg/strategy/ewoDgtrd/trylock_18.go
Normal file
10
pkg/strategy/ewoDgtrd/trylock_18.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
package ewoDgtrd
|
||||
|
||||
import "sync"
|
||||
|
||||
func tryLock(lock *sync.RWMutex) bool {
|
||||
return lock.TryLock()
|
||||
}
|
Loading…
Reference in New Issue
Block a user