small fix

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-11-05 01:56:02 +03:00
parent 78ef338fe3
commit ad418b5905

View File

@ -775,7 +775,7 @@ func (g *grpcServer) Register() error {
defer g.Unlock()
for sb := range g.subscribers {
handler := g.createSubHandler(sb, g.opts)
handler := g.createSubHandler(sb, config)
var opts []broker.SubscribeOption
if queue := sb.Options().Queue; len(queue) > 0 {
opts = append(opts, broker.SubscribeGroup(queue))