Pass options to the s.NewSubscriber

This commit is contained in:
Pavel Arefiev 2017-08-24 10:47:32 +03:00
parent e3f818d18e
commit eff39083ca

View File

@ -81,5 +81,5 @@ func RegisterHandler(s server.Server, h interface{}, opts ...server.HandlerOptio
// RegisterSubscriber is syntactic sugar for registering a subscriber
func RegisterSubscriber(topic string, s server.Server, h interface{}, opts ...server.SubscriberOption) error {
return s.Subscribe(s.NewSubscriber(topic, h))
return s.Subscribe(s.NewSubscriber(topic, h, opts...))
}