Fixed GRPC method name generation.

Change-Id: I827b7e9aee1edb77752322455f7b6fafac16fb1d
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen 2017-01-09 15:54:31 -08:00
parent 2c4dce5ba7
commit 8c1a723ba5
2 changed files with 3 additions and 4 deletions

View File

@ -149,8 +149,7 @@ std::string Namespace::GetFullyQualifiedName(const std::string &name,
}
stream << components[i];
}
stream << "." << name;
if (name.length()) stream << "." << name;
return stream.str();
}

View File

@ -18,8 +18,8 @@ namespace MyGame {
namespace Example {
static const char* MonsterStorage_method_names[] = {
"/MyGame.Example..MonsterStorage/Store",
"/MyGame.Example..MonsterStorage/Retrieve",
"/MyGame.Example.MonsterStorage/Store",
"/MyGame.Example.MonsterStorage/Retrieve",
};
std::unique_ptr< MonsterStorage::Stub> MonsterStorage::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {