Skip to content

Commit

Permalink
Revert "remove package name in RpcMessage. PROTOCOL CHANGED"
Browse files Browse the repository at this point in the history
This reverts commit 0197724.

Cherry-pick: 27c063d
  • Loading branch information
chenshuo committed Jan 20, 2017
1 parent 809f6bd commit 4dd20c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion muduo/net/protorpc/RpcChannel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void RpcChannel::CallMethod(const ::google::protobuf::MethodDescriptor* method,
message.set_type(REQUEST);
int64_t id = id_.incrementAndGet();
message.set_id(id);
message.set_service(method->service()->name());
message.set_service(method->service()->full_name());
message.set_method(method->name());
message.set_request(request->SerializeAsString()); // FIXME: error check

Expand Down
2 changes: 1 addition & 1 deletion muduo/net/protorpc/RpcServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RpcServer::RpcServer(EventLoop* loop,
void RpcServer::registerService(google::protobuf::Service* service)
{
const google::protobuf::ServiceDescriptor* desc = service->GetDescriptor();
services_[desc->name()] = service;
services_[desc->full_name()] = service;
}

void RpcServer::start()
Expand Down

0 comments on commit 4dd20c1

Please sign in to comment.