forked from thrasher-corp/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Subscriptions: Add batching to templates
- Loading branch information
Showing
2 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
{{- if eq .S.Channel "error1" }} | ||
{{/* An asset separator without specific asset*/}} | ||
{{- .AssetSeparator }} | ||
{{- .AssetSeparator }} | ||
{{/* An asset separator without specific asset*/}} | ||
{{- .AssetSeparator }} | ||
{{- .AssetSeparator }} | ||
{{- else if eq .S.Channel "error2" }} | ||
{{/* Expand pairs but not assets, without specific asset */}} | ||
{{- .PairSeparator -}} | ||
{{/* Expand pairs but not assets, without specific asset */}} | ||
{{- .PairSeparator -}} | ||
{{- else if eq .S.Channel "error3" }} | ||
{{/* Runtime error from executing */}} | ||
{{ .S.String 42 }} | ||
{{/* Runtime error from executing */}} | ||
{{ .S.String 42 }} | ||
{{- else if eq .S.Channel "error4" }} | ||
{{/* Incorrect number of asset entries */}} | ||
{{- .AssetSeparator }} | ||
{{/* Incorrect number of asset entries */}} | ||
{{- .AssetSeparator }} | ||
{{- else if eq .S.Channel "error5" }} | ||
{{/* Incorrect number of pair entries */}} | ||
{{- .PairSeparator }} | ||
{{/* Incorrect number of pair entries */}} | ||
{{- .PairSeparator }} | ||
{{- else if eq .S.Channel "empty-content" }} | ||
{{/* Empty response for the pair */}} | ||
{{- .PairSeparator }} | ||
{{- .PairSeparator }} | ||
{{- end -}} |