From 2dca9762e2e8861c74cff5da3b4ad7be54874798 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 16 Nov 2024 00:37:08 +0800 Subject: [PATCH] take off disconnectC --- pkg/strategy/xdepthmaker/strategy.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/strategy/xdepthmaker/strategy.go b/pkg/strategy/xdepthmaker/strategy.go index 2c6333b2b..19154c779 100644 --- a/pkg/strategy/xdepthmaker/strategy.go +++ b/pkg/strategy/xdepthmaker/strategy.go @@ -1127,15 +1127,6 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) { return } - // if it's disconnected or context is canceled, then return - select { - case <-ctx.Done(): - return - case <-s.makerConnectivity.DisconnectedC(): - return - default: - } - bestBid, bestAsk, hasPrice := s.sourceBook.BestBidAndAsk() if !hasPrice { return