diff --git a/pkg/strategy/grid2/active_order_recover.go b/pkg/strategy/grid2/active_order_recover.go index 1c10849b0..a8e7bcc26 100644 --- a/pkg/strategy/grid2/active_order_recover.go +++ b/pkg/strategy/grid2/active_order_recover.go @@ -42,14 +42,14 @@ func (s *Strategy) recoverActiveOrdersPeriodically(ctx context.Context) { } func (s *Strategy) syncActiveOrders(ctx context.Context) error { + s.logger.Infof("[ActiveOrderRecover] syncActiveOrders") + recovered := atomic.LoadInt32(&s.recovered) if recovered == 0 { s.logger.Infof("[ActiveOrderRecover] skip recovering active orders because recover not ready") return nil } - s.logger.Infof("[ActiveOrderRecover] recovering active orders with open orders") - if s.getGrid() == nil { return nil }