Skip to content

Commit

Permalink
refactor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jehiah committed Nov 28, 2020
1 parent 6c6bc00 commit 4d00173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsqd/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (s *httpServer) getTopicFromQuery(req *http.Request) (url.Values, *Topic, e
if !protocol.IsValidTopicName(topicName) {
return nil, nil, http_api.Err{400, "INVALID_TOPIC"}
}
topic := s.ctx.nsqd.GetTopic(topicName)
topic := s.nsqd.GetTopic(topicName)
if topic == nil {
return nil, nil, http_api.Err{503, "EXITING"}
}
Expand Down

0 comments on commit 4d00173

Please sign in to comment.