mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-24 23:16:52 +00:00
Subscriptions: Add List.Public, List.Enabled and List.Private (#1629)
This commit is contained in:
@@ -1658,12 +1658,7 @@ func (ku *Kucoin) checkSubscriptions() {
|
||||
return false
|
||||
})
|
||||
if upgraded {
|
||||
ku.Features.Subscriptions = subscription.List{}
|
||||
for _, s := range ku.Config.Features.Subscriptions {
|
||||
if s.Enabled {
|
||||
ku.Features.Subscriptions = append(ku.Features.Subscriptions, s)
|
||||
}
|
||||
}
|
||||
ku.Features.Subscriptions = ku.Config.Features.Subscriptions.Enabled()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user