Skip to content

Commit 85e03cb

Browse files
author
Ali Sunjaya
committed
returns nats.msghandler type
1 parent 191f49a commit 85e03cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport/nats/subscriber.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func SubscriberFinalizer(f ...SubscriberFinalizerFunc) SubscriberOption {
9191
}
9292

9393
// ServeMsg provides nats.MsgHandler.
94-
func (s Subscriber) ServeMsg(nc *nats.Conn) func(msg *nats.Msg) {
94+
func (s Subscriber) ServeMsg(nc *nats.Conn) nats.MsgHandler {
9595
return func(msg *nats.Msg) {
9696
ctx, cancel := context.WithCancel(context.Background())
9797
defer cancel()

0 commit comments

Comments
 (0)