mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
take off disconnectC
This commit is contained in:
parent
11394ae650
commit
2dca9762e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user