mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Binance: websocket orderbook reconnection fix, some bug fix (#630)
* binance websocket orderbook reconnection fix * add context.WithDeadline * Deadline() context still not resolved * stage1 * fmt * cleanup * fix applyBufferUpdate err returning * remove comment * remove extra return * increase Binance maxWSUpdateBuffer Co-authored-by: Vazha Bezhanishvili <vazha.bezhanishvili@elegro.eu> Co-authored-by: gloriousCode <scott.grant@thrasher.io>
This commit is contained in:
@@ -378,6 +378,7 @@ func (w *Orderbook) LoadSnapshot(book *orderbook.Base) error {
|
||||
m3 = &orderbookHolder{ob: book, buffer: &[]Update{}}
|
||||
m2[book.AssetType] = m3
|
||||
} else {
|
||||
m3.ob.LastUpdateID = book.LastUpdateID
|
||||
m3.ob.Bids = book.Bids
|
||||
m3.ob.Asks = book.Asks
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user