mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
grid2: improve some logging
This commit is contained in:
parent
1347c8ef87
commit
5f9d020ac8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user