From 4be4a86d0a932a2242c15967844d9ce3eb1c1676 Mon Sep 17 00:00:00 2001 From: gvolfing <107616712+gvolfing@users.noreply.github.com> Date: Wed, 1 Feb 2023 11:39:48 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: János Benjamin Antal --- src/query/v2/plan/operator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/query/v2/plan/operator.cpp b/src/query/v2/plan/operator.cpp index 20425de6a..4a512fcd6 100644 --- a/src/query/v2/plan/operator.cpp +++ b/src/query/v2/plan/operator.cpp @@ -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)); } }