use server context when create handler context

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-09-20 15:22:13 +03:00
parent a186c70446
commit 4c65c013e5

View File

@ -199,7 +199,7 @@ func (g *grpcServer) createSubHandler(sb *subscriber, opts server.Options) broke
hdr[k] = v hdr[k] = v
} }
delete(hdr, "Content-Type") delete(hdr, "Content-Type")
ctx := metadata.NewContext(context.Background(), hdr) ctx := metadata.NewContext(sb.opts.Context, hdr)
results := make(chan error, len(sb.handlers)) results := make(chan error, len(sb.handlers))