mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 15:10:54 +00:00
engine/websocket: subscribe to default channels only when actually needed (#610)
* if this is required by ws routines or sync manager * restore previous subscriptions on reconnect
This commit is contained in:
@@ -86,11 +86,7 @@ func (b *Binance) WsConnect() error {
|
||||
|
||||
go b.wsReadData()
|
||||
|
||||
subs, err := b.GenerateSubscriptions()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return b.Websocket.SubscribeToChannels(subs)
|
||||
return nil
|
||||
}
|
||||
|
||||
// KeepAuthKeyAlive will continuously send messages to
|
||||
|
||||
Reference in New Issue
Block a user