take off disconnectC

This commit is contained in:
c9s 2024-11-16 00:37:08 +08:00
parent 11394ae650
commit 2dca9762e2
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1127,15 +1127,6 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) {
return 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() bestBid, bestAsk, hasPrice := s.sourceBook.BestBidAndAsk()
if !hasPrice { if !hasPrice {
return return