Skip to content

Commit

Permalink
Merge pull request nsqio#982 from jehiah/nsqadmin_ephemeral_982
Browse files Browse the repository at this point in the history
nsqadmin: error querying nsqd stats for #ephemeral channel
  • Loading branch information
jehiah authored Jan 8, 2018
2 parents 25bc210 + 94e070b commit ff26ab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/clusterinfo/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (c *ClusterInfo) GetNSQDTopicProducers(topic string, nsqdHTTPAddrs []string
go func(addr string) {
defer wg.Done()

endpoint := fmt.Sprintf("http://%s/stats?format=json&topic=%s", addr, topic)
endpoint := fmt.Sprintf("http://%s/stats?format=json&topic=%s", addr, url.QueryEscape(topic))
c.logf("CI: querying nsqd %s", endpoint)

var statsResp statsRespType
Expand Down Expand Up @@ -552,9 +552,9 @@ func (c *ClusterInfo) GetNSQDStats(producers Producers, selectedTopic string, se

endpoint := fmt.Sprintf("http://%s/stats?format=json", addr)
if selectedTopic != "" {
endpoint += "&topic=" + selectedTopic
endpoint += "&topic=" + url.QueryEscape(selectedTopic)
if selectedChannel != "" {
endpoint += "&channel=" + selectedChannel
endpoint += "&channel=" + url.QueryEscape(selectedChannel)
}
}

Expand Down

0 comments on commit ff26ab4

Please sign in to comment.