Skip to content

Commit

Permalink
remove ignore error in method publish (micro#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
wudi authored and asim committed Jan 3, 2020
1 parent 31362bc commit 7098e59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions broker/http_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 7098e59

Please sign in to comment.