mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-15 03:23:52 +00:00
xmaker: reset book after emitting reconnect
This commit is contained in:
parent
eb91f9d77f
commit
fc322079ba
|
@ -655,8 +655,8 @@ func (s *Strategy) updateQuote(ctx context.Context) error {
|
|||
s.Symbol,
|
||||
time.Since(bookLastUpdateTime))
|
||||
|
||||
s.sourceBook.Reset()
|
||||
s.sourceSession.MarketDataStream.Reconnect()
|
||||
s.sourceBook.Reset()
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -665,8 +665,8 @@ func (s *Strategy) updateQuote(ctx context.Context) error {
|
|||
s.Symbol,
|
||||
time.Since(bookLastUpdateTime))
|
||||
|
||||
s.sourceBook.Reset()
|
||||
s.sourceSession.MarketDataStream.Reconnect()
|
||||
s.sourceBook.Reset()
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user