mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: fix Warn by using Warnf
This commit is contained in:
parent
fd2032b825
commit
c6609927f2
|
@ -523,7 +523,7 @@ func (s *Strategy) handleOrderFilled(o types.Order) {
|
|||
}
|
||||
|
||||
if s.filledOrderIDMap.Exists(o.OrderID) {
|
||||
s.logger.Warn("duplicated id (%d) of filled order detected", o.OrderID)
|
||||
s.logger.Warnf("duplicated id (%d) of filled order detected", o.OrderID)
|
||||
return
|
||||
}
|
||||
s.filledOrderIDMap.Add(o)
|
||||
|
@ -2140,4 +2140,4 @@ func queryOpenOrdersUntilSuccessful(ctx context.Context, ex types.Exchange, symb
|
|||
|
||||
err = generalBackoff(ctx, op)
|
||||
return openOrders, err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user