Skip to content

Commit

Permalink
fix client code style (vesoft-inc#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
darionyaphet authored and dutor committed Jan 14, 2019
1 parent 1cf1438 commit ac03d80
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/client/cpp/GraphClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ac03d80

Please sign in to comment.