Skip to content

Commit

Permalink
patch: send response for failed Normify checks
Browse files Browse the repository at this point in the history
- marked errors from pubsub normify as wrpkit.ErrNotHandled
- this will trigger responses for Normify errors
  • Loading branch information
denopink committed Jul 31, 2024
1 parent 850efb6 commit 452dc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pubsub/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (ps *PubSub) subscribe(route string, h wrpkit.Handler) (CancelFunc, error)
func (ps *PubSub) HandleWrp(msg wrp.Message) error {
normalized, dest, err := ps.normalize(&msg)
if err != nil {
return err
return errors.Join(err, wrpkit.ErrNotHandled)
}

// Unless the destination is this device, the message will be sent to the
Expand Down

0 comments on commit 452dc3a

Please sign in to comment.