Skip to content

Commit

Permalink
nsqd: log when we can't get channels for pre-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Dec 28, 2016
1 parent bdb2919 commit 7aaca6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nsqd/nsqd.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ func (n *NSQD) GetTopic(topicName string) *Topic {
// this makes sure that any message received is buffered to the right channels
lookupdHTTPAddrs := n.lookupdHTTPAddrs()
if len(lookupdHTTPAddrs) > 0 {
channelNames, _ := n.ci.GetLookupdTopicChannels(t.name, lookupdHTTPAddrs)
channelNames, err := n.ci.GetLookupdTopicChannels(t.name, lookupdHTTPAddrs)
if err != nil {
n.logf("ERROR: failed to get channels for pre-creation for topic %s - %s", t.name, err)
}
for _, channelName := range channelNames {
if strings.HasSuffix(channelName, "#ephemeral") {
// we don't want to pre-create ephemeral channels
Expand Down

0 comments on commit 7aaca6f

Please sign in to comment.