mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 15:11:03 +00:00
Subscriptions: Respect DisableAssetWebsocketSupport for assets (#1693)
* Bitmex: Add index asset to test config * Subscriptions: Fix unsupported WS assets included fixed 1692 * Bitmex: Assertify and fix tests * Subscriptions: Fix all asset subs erroring on no enabled assets Only subs with Empty asset should do anything when assets are empty. If asset is set to all and no assets are enabled, we should return nothing
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -650,16 +650,16 @@ func channelName(s *subscription.Subscription, a asset.Item) string {
|
||||
|
||||
const subTplText = `
|
||||
{{- if $.S.Asset }}
|
||||
{{ range $asset, $pairs := $.AssetPairs }}
|
||||
{{- range $asset, $pairs := $.AssetPairs }}
|
||||
{{- with $name := channelName $.S $asset }}
|
||||
{{- range $i, $p := $pairs -}}
|
||||
{{- $name -}} : {{- $p -}}
|
||||
{{ $.PairSeparator }}
|
||||
{{- range $i, $p := $pairs }}
|
||||
{{- $name -}} : {{- $p }}
|
||||
{{- $.PairSeparator }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ $.AssetSeparator }}
|
||||
{{- $.AssetSeparator }}
|
||||
{{- end }}
|
||||
{{- else -}}
|
||||
{{ channelName $.S $.S.Asset }}
|
||||
{{- else }}
|
||||
{{- channelName $.S $.S.Asset }}
|
||||
{{- end }}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user