Apply suggestions from code review

Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
gvolfing 2023-02-01 11:39:48 +01:00 committed by GitHub
parent 7d63236f87
commit 4be4a86d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -664,11 +664,10 @@ class DistributedScanByPrimaryKeyCursor : public Cursor {
});
for (auto &result : get_prop_result) {
auto properties = result.props;
// TODO (gvolfing) figure out labels when relevant.
msgs::Vertex vertex = {.id = result.vertex, .labels = {}};
id_to_accessor_mapping_.emplace(result.vertex, VertexAccessor(vertex, properties, &request_router));
id_to_accessor_mapping_.emplace(result.vertex, VertexAccessor(std::move(vertex), std::move(result.properties), &request_router));
}
}