From 69e76485c5c0bb7756bd6973c9f75b07c725442f Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 30 May 2021 18:06:31 +0800 Subject: [PATCH] xbalance: fix ticker usage --- pkg/strategy/xbalance/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/xbalance/strategy.go b/pkg/strategy/xbalance/strategy.go index 9245a3f2f..14c67f313 100644 --- a/pkg/strategy/xbalance/strategy.go +++ b/pkg/strategy/xbalance/strategy.go @@ -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 {