grid2: simplify WriteString call

This commit is contained in:
c9s 2023-02-22 15:45:33 +08:00
parent 905b25655d
commit ef771546e3
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -31,7 +31,7 @@ func debugGrid(logger logrus.FieldLogger, grid *Grid, book *bbgo.ActiveOrderBook
})
if existingOrder != nil {
sb.WriteString(fmt.Sprintf("%s", existingOrder.String()))
sb.WriteString(existingOrder.String())
switch existingOrder.Status {
case types.OrderStatusFilled: