forked from TrueCloudLab/frostfs-qos
[#12] grpc: Fix method name
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
1ca213ee7c
commit
32079ad7c2
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ const (
|
||||||
ioTagHeader = "x-frostfs-io-tag"
|
ioTagHeader = "x-frostfs-io-tag"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewUnaryClientInteceptor creates new gRPC unary interceptor to set an IO tag to gRPC metadata.
|
// NewUnaryClientInterceptor creates new gRPC unary interceptor to set an IO tag to gRPC metadata.
|
||||||
func NewUnaryClientInteceptor() grpc.UnaryClientInterceptor {
|
func NewUnaryClientInterceptor() grpc.UnaryClientInterceptor {
|
||||||
return func(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
return func(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
||||||
return invoker(setIOTagToGRPCMetadata(ctx), method, req, reply, cc, opts...)
|
return invoker(setIOTagToGRPCMetadata(ctx), method, req, reply, cc, opts...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue