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:
Vazha
2021-03-03 02:20:14 +02:00
committed by GitHub
parent 49bd39e8f2
commit 2064743252
5 changed files with 64 additions and 68 deletions

View File

@@ -375,7 +375,7 @@ func (e *ExchangeCurrencyPairSyncer) worker() {
continue
}
if switchedToRest && usingWebsocket {
log.Infof(log.SyncMgr,
log.Warnf(log.SyncMgr,
"%s %s: Websocket re-enabled, switching from rest to websocket\n",
c.Exchange, FormatCurrency(enabledPairs[i]).String())
switchedToRest = false