Skip to content

Commit

Permalink
fixup! CoinbasePro: Add subscription templating
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Aug 22, 2024
1 parent c98ee2e commit 5a2c74c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion exchanges/coinbasepro/coinbasepro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ func TestProcessSnapshotUpdate(t *testing.T) {
assert.NoError(t, err)
}

func TestGenerateDefaultSubscriptions(t *testing.T) {
func TestGenerateSubscriptions(t *testing.T) {
comparison := subscription.List{{Channel: "heartbeats"}, {Channel: "status"}, {Channel: "ticker"},
{Channel: "ticker_batch"}, {Channel: "candles"}, {Channel: "market_trades"}, {Channel: "level2"}}
for i := range comparison {
Expand Down
1 change: 0 additions & 1 deletion exchanges/coinbasepro/coinbasepro_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ func channelName(s *subscription.Subscription) string {
const subTplText = `
{{ range $asset, $pairs := $.AssetPairs }}
{{- channelName $.S -}}
{{- with $i := $.S.Interval -}} _ {{- interval $i }}{{ end -}}
{{- $.AssetSeparator }}
{{- end }}
`

0 comments on commit 5a2c74c

Please sign in to comment.