remove ignore error in method publish (#1075)

This commit is contained in:
Eagle Wu 2020-01-04 01:24:20 +08:00 committed by Asim Aslam
parent 31362bc331
commit 7098e59b5c

View File

@ -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()