Skip to content

Commit 4fe72fe

Browse files
author
Ali Sunjaya
committed
returns nats.msghandler type
1 parent d7cefca commit 4fe72fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)