Skip to content

Commit

Permalink
returns nats.msghandler type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Sunjaya committed May 18, 2022
1 parent d7cefca commit 4fe72fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/nats/subscriber.go
Expand Up @@ -91,7 +91,7 @@ func SubscriberFinalizer(f ...SubscriberFinalizerFunc) SubscriberOption {
}

// ServeMsg provides nats.MsgHandler.
func (s Subscriber) ServeMsg(nc *nats.Conn) func(msg *nats.Msg) {
func (s Subscriber) ServeMsg(nc *nats.Conn) nats.MsgHandler {
return func(msg *nats.Msg) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
Expand Down

0 comments on commit 4fe72fe

Please sign in to comment.