diff --git a/nsqd/http.go b/nsqd/http.go index c3fc10048..6bbf85c23 100644 --- a/nsqd/http.go +++ b/nsqd/http.go @@ -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"} }