mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
adjust snapshot ticker to 10 minutes
This commit is contained in:
parent
6a6dacd595
commit
e08d62395e
|
@ -521,7 +521,7 @@ func (f *DepthFrame) PushEvent(e DepthEvent) {
|
|||
|
||||
f.loadDepthSnapshot()
|
||||
|
||||
ticker := time.NewTicker(1*time.Minute + time.Duration(rand.Intn(10))*time.Second)
|
||||
ticker := time.NewTicker(10*time.Minute + time.Duration(rand.Intn(10))*time.Second)
|
||||
defer ticker.Stop()
|
||||
for {
|
||||
select {
|
||||
|
|
Loading…
Reference in New Issue
Block a user