From 091eb5d9c5ab2efb773edb8fe91395076cda5241 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 27 Sep 2024 14:27:20 +0800 Subject: [PATCH] xdepthmaker: return when we can't clean up the open orders --- pkg/strategy/xdepthmaker/strategy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/strategy/xdepthmaker/strategy.go b/pkg/strategy/xdepthmaker/strategy.go index c568f7b3f..bcf9b6e66 100644 --- a/pkg/strategy/xdepthmaker/strategy.go +++ b/pkg/strategy/xdepthmaker/strategy.go @@ -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)