diff --git a/src/storage/v3/shard_rsm.cpp b/src/storage/v3/shard_rsm.cpp index 86ccbb4c9..f7b655a29 100644 --- a/src/storage/v3/shard_rsm.cpp +++ b/src/storage/v3/shard_rsm.cpp @@ -517,7 +517,7 @@ msgs::ReadResponses HandleReadWithOrderBy(msgs::ExpandOneRequest &&req, Shard::A std::vector out_edge_ordered_accessors; std::transform(out_ordered_edges.begin(), out_ordered_edges.end(), std::back_inserter(out_edge_ordered_accessors), - [](auto &edge_element) { return edge_element.object_acc; }); + [](const auto &edge_element) { return edge_element.object_acc; }); auto label_id = src_vertex_acc.PrimaryLabel(View::NEW); if (label_id.HasError()) {