accept publisher options

This commit is contained in:
Asim Aslam 2019-05-21 07:49:30 +00:00
parent 92ab814138
commit 0016752fc1

View File

@ -12,5 +12,5 @@ type publisher struct {
}
func (p *publisher) Publish(ctx context.Context, msg interface{}, opts ...client.PublishOption) error {
return p.c.Publish(ctx, p.c.NewMessage(p.topic, msg))
return p.c.Publish(ctx, p.c.NewMessage(p.topic, msg), opts...)
}