mirror of
https://github.com/go-micro/go-micro.git
synced 2025-03-17 20:28:06 +02:00
remove ignore error in method publish (#1075)
This commit is contained in:
parent
31362bc331
commit
7098e59b5c
@ -533,8 +533,7 @@ func (h *httpBroker) Publish(topic string, msg *Message, opts ...PublishOption)
|
|||||||
s, err := h.r.GetService(serviceName)
|
s, err := h.r.GetService(serviceName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
h.RUnlock()
|
h.RUnlock()
|
||||||
// ignore error
|
return err
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
h.RUnlock()
|
h.RUnlock()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user