xdepthmaker: return when we can't clean up the open orders

This commit is contained in:
c9s 2024-09-27 14:27:20 +08:00
parent fb35a2b79f
commit 091eb5d9c5
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -400,6 +400,7 @@ func (s *Strategy) quoteWorker(ctx context.Context) {
// clean up the previous open orders
if err := s.cleanUpOpenOrders(ctx, s.makerSession); err != nil {
log.WithError(err).Errorf("error cleaning up open orders")
return
}
s.updateQuote(ctx, 0)