Sha256: c9d1ab552d3371da095f7ab82a533a9012bd7309b7a5be96d2733e9fc2a7ff08
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/interceptors' module GrpcKit module Interceptors::Client class ClientStreamer < Streaming private # @param interceptor [GrpcKit::GRPC::ClientInterceptor] # @param call [GrpcKit::Calls::Client::ClientStreamer] # @param metadata [Hash<String,String>] def invoke(interceptor, call, metadata) # We don't need a `:requests` parameter but, # it shuoldn't remove from paramters due to having a compatibility of grpc gem. interceptor.client_streamer(requests: nil, call: call, method: call.method, metadata: metadata) do yield(call, metadata) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grpc_kit-0.1.9 | lib/grpc_kit/interceptors/client_client_streamer.rb |