From 4d0017348e3964895f8e9253b8de5546f0fe100f Mon Sep 17 00:00:00 2001 From: Jehiah Czebotar Date: Fri, 27 Nov 2020 20:17:28 -0500 Subject: [PATCH] refactor cleanup --- nsqd/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"} }