We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f142ac9 + 7de034d commit 61ca34bCopy full SHA for 61ca34b
router.go
@@ -30,8 +30,12 @@ func (r *Router) HandleMessage(m *Message) error {
30
path := m.Payload.Attributes[client.MessageAttributeNameRoute]
31
h, okRoute := r.handlers[path]
32
if okRoute {
33
+ err := h.HandleMessage(m)
34
+ if err != nil {
35
+ m.Payload.Nack()
36
+ return err
37
+ }
38
m.Payload.Ack()
- return h.HandleMessage(m)
39
}
40
// if you need reporting please contrib this error handling
41
// return errors.New("Route Not Any Match")
0 commit comments