func (r *clientRouter) UnaryResolver() grpc.UnaryClientInterceptor {
	return func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
		// TODO: Find a more efficient way to chain the interceptors
		interceptor := NewUnaryClientInterceptor()
		_, err := resolveClientInterceptor(method, r.interceptors, func(lvl ClientInterceptor) {
			interceptor.AddInterceptor(lvl.UnaryClientInterceptor())
		}, false)
		if err != nil {
			return grpc.Errorf(codes.Internal, err.Error())
		}
		return interceptor.Interceptor()(ctx, method, req, reply, cc, invoker, opts...)
	}
}
// UnaryResolver returns a `grpc.UnaryClientInterceptor` that uses the
// appropriate chain of interceptors with the given gRPC request.
UnaryResolver returns a `grpc.UnaryClientInterceptor` that uses the
appropriate chain of interceptors with the given gRPC request.
// UnaryResolver returns a ` grpc . UnaryClientInterceptor ` that uses the // appropriate chain of interceptors with the given gRPC request .
func (r *clientRouter) UnaryResolver() grpc.UnaryClientInterceptor {
	return func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
		interceptor := NewUnaryClientInterceptor()
		_, err := resolveClientInterceptor(method, r.interceptors, func(lvl ClientInterceptor) {
			interceptor.AddInterceptor(lvl.UnaryClientInterceptor())
		}, false)
		if err != nil {
			return grpc.Errorf(codes.Internal, err.Error())
		}
		return interceptor.Interceptor()(ctx, method, req, reply, cc, invoker, opts...)
	}
}
func ( r * clientRouter ) UnaryResolver ( ) grpc . UnaryClientInterceptor { return func ( ctx context . Context , method string , req , reply interface { } , cc * grpc . ClientConn , invoker grpc . UnaryInvoker , opts ... grpc . CallOption ) error { interceptor := NewUnaryClientInterceptor ( ) _ , err := resolveClientInterceptor ( method , r . interceptors , func ( lvl ClientInterceptor ) { interceptor . AddInterceptor ( lvl . UnaryClientInterceptor ( ) ) } , false ) if err != nil { return grpc . Errorf ( codes . Internal , err . Error ( ) ) } return interceptor . Interceptor ( ) ( ctx , method , req , reply , cc , invoker , opts ... ) } }
UnaryResolver returns a `grpc.UnaryClientInterceptor` that uses the
appropriate chain of interceptors with the given gRPC request.
UnaryResolver returns a ` grpc . UnaryClientInterceptor ` that uses the appropriate chain of interceptors with the given gRPC request .
// TODO: Find a more efficient way to chain the interceptors