Make RpcMethod constructor take all args

pull/1261/head
Craig Tiller 10 years ago committed by Craig Tiller
parent bd6c61860a
commit 53a38d4699
  1. 2
      include/grpc++/impl/rpc_method.h
  2. 2
      src/cpp/client/generic_stub.cc

@ -45,8 +45,6 @@ class RpcMethod {
BIDI_STREAMING
};
explicit RpcMethod(const char* name)
: name_(name), method_type_(NORMAL_RPC) {}
RpcMethod(const char* name, RpcType type) : name_(name), method_type_(type) {}
const char* name() const { return name_; }

@ -43,7 +43,7 @@ std::unique_ptr<GenericClientAsyncReaderWriter> GenericStub::Call(
CompletionQueue* cq, void* tag) {
return std::unique_ptr<GenericClientAsyncReaderWriter>(
new GenericClientAsyncReaderWriter(
channel_.get(), cq, RpcMethod(method.c_str()), context, tag));
channel_.get(), cq, RpcMethod(method.c_str(), RpcMethod::BIDI_STREAMING), context, tag));
}

Loading…
Cancel
Save