From 6d6e4354cdcda45f426d6efc0d6aae225c5660e2 Mon Sep 17 00:00:00 2001 From: darionyaphet Date: Mon, 14 Jan 2019 12:10:36 +0800 Subject: [PATCH] fix client code style --- src/client/cpp/GraphClient.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/client/cpp/GraphClient.cpp b/src/client/cpp/GraphClient.cpp index e74717862e2..4b34df21a1a 100644 --- a/src/client/cpp/GraphClient.cpp +++ b/src/client/cpp/GraphClient.cpp @@ -29,10 +29,11 @@ GraphClient::~GraphClient() { cpp2::ErrorCode GraphClient::connect(const std::string& username, - const std::string& password) { - using namespace apache::thrift; + const std::string& password) { + using apache::thrift::async::TAsyncSocket; + using apache::thrift::HeaderClientChannel; - auto socket = async::TAsyncSocket::newSocket( + auto socket = TAsyncSocket::newSocket( folly::EventBaseManager::get()->getEventBase(), addr_, port_, @@ -72,7 +73,7 @@ void GraphClient::disconnect() { cpp2::ErrorCode GraphClient::execute(folly::StringPiece stmt, - cpp2::ExecutionResponse& resp) { + cpp2::ExecutionResponse& resp) { if (!client_) { LOG(ERROR) << "Disconnected from the server"; return cpp2::ErrorCode::E_DISCONNECTED;