Reviewer comments
This commit is contained in:
parent
c01e866a88
commit
aa59509369
|
|
@ -41,7 +41,8 @@ class KeyValueStoreClient {
|
|||
KeyValueStoreClient(std::shared_ptr<Channel> channel)
|
||||
: stub_(KeyValueStore::NewStub(channel)) {}
|
||||
|
||||
// Requests each key in the vector and displays the value as a pair
|
||||
// Requests each key in the vector and displays the key and its corresponding
|
||||
// value as a pair
|
||||
void GetValues(const std::vector<std::string>& keys) {
|
||||
// Context for the client. It could be used to convey extra information to
|
||||
// the server and/or tweak certain RPC behaviors.
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ void RunServer() {
|
|||
// Listen on the given address without any authentication mechanism.
|
||||
builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());
|
||||
// Register "service" as the instance through which we'll communicate with
|
||||
// clients. In this case it corresponds to an *synchronous* service.
|
||||
// clients. In this case, it corresponds to an *synchronous* service.
|
||||
builder.RegisterService(&service);
|
||||
// Finally assemble the server.
|
||||
std::unique_ptr<Server> server(builder.BuildAndStart());
|
||||
|
|
|
|||
Loading…
Reference in New Issue