adjust snapshot ticker to 10 minutes

This commit is contained in:
c9s 2021-01-23 17:03:53 +08:00
parent 6a6dacd595
commit e08d62395e

View File

@ -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 {