Skip to content

Commit

Permalink
fix topic segment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwe committed Mar 12, 2024
1 parent 9926ccc commit 2368055
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/info/channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ func formatServerChannel(service string, topic []string, queue bool) string {
defer scratch.Put(p)
b := append(*p, "SRV."...)
b = append(b, service...)
if len(topic) > 0 {
b = append(b, '.')
b = appendChannelParts(b, '.', topic...)
for _, t := range topic {
if len(t) > 0 {
b = append(b, '.')
b = append(b, t...)
}
}
if queue {
b = append(b, ".Q"...)
Expand Down

0 comments on commit 2368055

Please sign in to comment.