From ac03d80ff48a251e11a4945830d8b1fe4fced8a6 Mon Sep 17 00:00:00 2001 From: yaphet Date: Mon, 14 Jan 2019 15:28:55 +0800 Subject: [PATCH] fix client code style (#92) close #87 --- 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;