grid2: fix log index number

This commit is contained in:
c9s 2023-02-22 01:08:19 +08:00
parent d2d818a6bc
commit bee7b593d2
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ func (e *GeneralOrderExecutor) SubmitOrders(ctx context.Context, submitOrders ..
if len(errIdx) > 0 { if len(errIdx) > 0 {
time.Sleep(200 * time.Millisecond) time.Sleep(200 * time.Millisecond)
createdOrders2, err2 := BatchRetryPlaceOrder(ctx, e.session.Exchange, errIdx, formattedOrders...) createdOrders2, err2 := BatchRetryPlaceOrder(ctx, e.session.Exchange, errIdx, formattedOrders...)
if err2 != nil { if err2 != nil {
err = multierr.Append(err, err2) err = multierr.Append(err, err2)

View File

@ -1248,7 +1248,7 @@ func (s *Strategy) recoverGridWithOpenOrders(ctx context.Context, historyService
s.logger.Infof("GRID RECOVER: found %d filled grid orders, will re-replay the order event in the following order:", len(filledOrders)) s.logger.Infof("GRID RECOVER: found %d filled grid orders, will re-replay the order event in the following order:", len(filledOrders))
for i, o := range filledOrders { for i, o := range filledOrders {
s.logger.Infof("%d) %s", i, o.String()) s.logger.Infof("%d) %s", i+1, o.String())
} }
// before we re-play the orders, // before we re-play the orders,