Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Jan 5, 2024
1 parent a37ce25 commit 1544195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/graph/service/GraphService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,8 @@ folly::Future<cpp2::VerifyClientVersionResp> GraphService::future_verifyClientVe

if (FLAGS_enable_client_white_list && whiteList.find(req.get_version()) == whiteList.end()) {
resp.error_code_ref() = nebula::cpp2::ErrorCode::E_CLIENT_SERVER_INCOMPATIBLE;
resp.error_msg_ref() = folly::stringPrintf(
"Graph client handshakeKey(%s) is not accepted.",
req.get_version().c_str());
resp.error_msg_ref() = folly::stringPrintf("Graph client handshakeKey(%s) is not accepted.",
req.get_version().c_str());
} else {
resp.error_code_ref() = nebula::cpp2::ErrorCode::SUCCEEDED;
}
Expand Down
5 changes: 2 additions & 3 deletions src/meta/processors/admin/VerifyClientVersionProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ void VerifyClientVersionProcessor::process(const cpp2::VerifyClientVersionReq& r
if (FLAGS_enable_client_white_list &&
whiteList.find(req.get_client_version()) == whiteList.end()) {
resp_.code_ref() = nebula::cpp2::ErrorCode::E_CLIENT_SERVER_INCOMPATIBLE;
resp_.error_msg_ref() = folly::stringPrintf(
"Meta client handshakeKey(%s) is not accepted.",
req.get_client_version().c_str());
resp_.error_msg_ref() = folly::stringPrintf("Meta client handshakeKey(%s) is not accepted.",
req.get_client_version().c_str());
}

onFinished();
Expand Down

0 comments on commit 1544195

Please sign in to comment.