fix naming
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
5291f54b46
commit
318362d21f
@ -72,12 +72,12 @@ func (w *wrapper) Stream(ctx context.Context, req client.Request, opts ...client
|
|||||||
return w.Client.Stream(ctx, req, opts...)
|
return w.Client.Stream(ctx, req, opts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *wrapper) Publish(ctx context.Context, p client.Message, opts ...client.PublishOption) error {
|
func (w *wrapper) Publish(ctx context.Context, msg client.Message, opts ...client.PublishOption) error {
|
||||||
var err error
|
var err error
|
||||||
if ctx, err = MetadataFunc(ctx); err != nil {
|
if ctx, err = MetadataFunc(ctx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return w.Client.Publish(ctx, p, opts...)
|
return w.Client.Publish(ctx, msg, opts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewServerHandlerWrapper() server.HandlerWrapper {
|
func NewServerHandlerWrapper() server.HandlerWrapper {
|
||||||
|
Loading…
Reference in New Issue
Block a user