broker: add publish context (#1590)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
e9db13acab
commit
750b6d4733
2
grpc.go
2
grpc.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user