Fixed GRPC method name generation.

Change-Id: I827b7e9aee1edb77752322455f7b6fafac16fb1d
Tested: on Linux.
parent 2c4dce5b
...@@ -149,8 +149,7 @@ std::string Namespace::GetFullyQualifiedName(const std::string &name, ...@@ -149,8 +149,7 @@ std::string Namespace::GetFullyQualifiedName(const std::string &name,
} }
stream << components[i]; stream << components[i];
} }
if (name.length()) stream << "." << name;
stream << "." << name;
return stream.str(); return stream.str();
} }
......
...@@ -18,8 +18,8 @@ namespace MyGame { ...@@ -18,8 +18,8 @@ namespace MyGame {
namespace Example { namespace Example {
static const char* MonsterStorage_method_names[] = { static const char* MonsterStorage_method_names[] = {
"/MyGame.Example..MonsterStorage/Store", "/MyGame.Example.MonsterStorage/Store",
"/MyGame.Example..MonsterStorage/Retrieve", "/MyGame.Example.MonsterStorage/Retrieve",
}; };
std::unique_ptr< MonsterStorage::Stub> MonsterStorage::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { std::unique_ptr< MonsterStorage::Stub> MonsterStorage::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment