xbalance: fix ticker usage

This commit is contained in:
c9s 2021-05-30 18:06:31 +08:00
parent 80b665c4f7
commit 69e76485c5

View File

@ -364,7 +364,7 @@ func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, se
}
go func() {
ticker := time.NewTimer(util.MillisecondsJitter(s.Interval.Duration(), 1000))
ticker := time.NewTicker(util.MillisecondsJitter(s.Interval.Duration(), 1000))
defer ticker.Stop()
for {