From b72bb30126b8baf8b8140266bad2009e6d3c4ded Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Thu, 10 Jan 2019 14:18:24 -0800 Subject: Clang format --- examples/cpp/keyvaluestore/client.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/cpp/keyvaluestore/client.cc') diff --git a/examples/cpp/keyvaluestore/client.cc b/examples/cpp/keyvaluestore/client.cc index e956a16573..17e407c273 100644 --- a/examples/cpp/keyvaluestore/client.cc +++ b/examples/cpp/keyvaluestore/client.cc @@ -32,9 +32,9 @@ using grpc::Channel; using grpc::ClientContext; using grpc::Status; +using keyvaluestore::KeyValueStore; using keyvaluestore::Request; using keyvaluestore::Response; -using keyvaluestore::KeyValueStore; class KeyValueStoreClient { public: @@ -48,7 +48,7 @@ class KeyValueStoreClient { // the server and/or tweak certain RPC behaviors. ClientContext context; auto stream = stub_->GetValues(&context); - for (const auto& key:keys) { + for (const auto& key : keys) { // Key we are sending to the server. Request request; request.set_key(key); @@ -61,7 +61,7 @@ class KeyValueStoreClient { } stream->WritesDone(); Status status = stream->Finish(); - if(!status.ok()) { + if (!status.ok()) { std::cout << status.error_code() << ": " << status.error_message() << std::endl; std::cout << "RPC failed"; @@ -79,7 +79,7 @@ int main(int argc, char** argv) { // (use of InsecureChannelCredentials()). KeyValueStoreClient client(grpc::CreateChannel( "localhost:50051", grpc::InsecureChannelCredentials())); - std::vector keys = {"key1", "key2", "key3", "key4", "key5"}; + std::vector keys = {"key1", "key2", "key3", "key4", "key5"}; client.GetValues(keys); return 0; -- cgit v1.2.3