Apply suggestions from code review
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
parent
7d63236f87
commit
4be4a86d0a
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user