broker: add publish context (#1590)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-04-28 19:29:00 +03:00
parent e9db13acab
commit 750b6d4733

View File

@ -653,7 +653,7 @@ func (g *grpcClient) Publish(ctx context.Context, p client.Message, opts ...clie
return g.opts.Broker.Publish(topic, &broker.Message{ return g.opts.Broker.Publish(topic, &broker.Message{
Header: md, Header: md,
Body: body, Body: body,
}) }, broker.PublishContext(options.Context))
} }
func (g *grpcClient) String() string { func (g *grpcClient) String() string {