mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-21 07:26:48 +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:
@@ -558,11 +558,11 @@ func (e *Base) SetupDefaults(exch *config.ExchangeConfig) error {
|
||||
|
||||
if exch.HTTPTimeout <= time.Duration(0) {
|
||||
exch.HTTPTimeout = DefaultHTTPTimeout
|
||||
} else {
|
||||
err := e.SetHTTPClientTimeout(exch.HTTPTimeout)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err := e.SetHTTPClientTimeout(exch.HTTPTimeout)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if exch.CurrencyPairs == nil {
|
||||
@@ -573,7 +573,7 @@ func (e *Base) SetupDefaults(exch *config.ExchangeConfig) error {
|
||||
e.SetHTTPClientUserAgent(exch.HTTPUserAgent)
|
||||
e.SetCurrencyPairFormat()
|
||||
|
||||
err := e.SetConfigPairs()
|
||||
err = e.SetConfigPairs()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user