Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issues 87] Fix client code style issues #92

Merged
merged 4 commits into from
Jan 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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