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:
@@ -69,11 +69,7 @@ func (f *FTX) WsConnect() error {
|
||||
}
|
||||
}
|
||||
|
||||
subs, err := f.GenerateDefaultSubscriptions()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return f.Websocket.SubscribeToChannels(subs)
|
||||
return nil
|
||||
}
|
||||
|
||||
// WsAuth sends an authentication message to receive auth data
|
||||
|
||||
Reference in New Issue
Block a user