From 7098e59b5c74f1f138dcaae137f3f45a8c9c292a Mon Sep 17 00:00:00 2001 From: Eagle Wu Date: Sat, 4 Jan 2020 01:24:20 +0800 Subject: [PATCH] remove ignore error in method publish (#1075) --- broker/http_broker.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/broker/http_broker.go b/broker/http_broker.go index 53dd48f1..41d80f5d 100644 --- a/broker/http_broker.go +++ b/broker/http_broker.go @@ -533,8 +533,7 @@ func (h *httpBroker) Publish(topic string, msg *Message, opts ...PublishOption) s, err := h.r.GetService(serviceName) if err != nil { h.RUnlock() - // ignore error - return nil + return err } h.RUnlock()