mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xbalance: fix ticker usage
This commit is contained in:
parent
80b665c4f7
commit
69e76485c5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user