Skip to content

Commit

Permalink
refactor all path
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Mar 19, 2023
1 parent a7231fa commit 6bf3490
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 175 deletions.
8 changes: 6 additions & 2 deletions src/graph/executor/PathBaseExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ void PathBaseExecutor::addGetNeighborStats(RpcResponse& resp,
if (result.vertices_ref().has_value()) {
size = (*result.vertices_ref()).size();
}
auto info = util::collectRespProfileData(result.result, hostLatency[i], size, timeInUSec);
// auto info = util::collectRespProfileData(result.result, hostLatency[i], size, timeInUSec);
UNUSED(timeInUSec);
auto info = util::collectRespProfileData(result.result, hostLatency[i], size);
stats.push_back(std::move(info));
}

Expand All @@ -190,7 +192,9 @@ void PathBaseExecutor::addGetPropStats(PropRpcResponse& resp, int64_t timeInUSec
auto& hostLatency = resp.hostLatency();
for (size_t i = 0; i < hostLatency.size(); ++i) {
const auto& result = resp.responses()[i].get_result();
auto info = util::collectRespProfileData(result, hostLatency[i], 0, timeInUSec);
// auto info = util::collectRespProfileData(result, hostLatency[i], 0, timeInUSec);
UNUSED(timeInUSec);
auto info = util::collectRespProfileData(result, hostLatency[i], 0);
stats.push_back(std::move(info));
}

Expand Down
Loading

0 comments on commit 6bf3490

Please sign in to comment.