From 2f516d01cd81b971fd63ab8edb1c668202c7af60 Mon Sep 17 00:00:00 2001 From: Jonathan Weiss Date: Sat, 10 Dec 2022 18:33:00 +0200 Subject: [PATCH] avoid move --- src/services/manager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/services/manager.cpp b/src/services/manager.cpp index 2be1ee9..9989ae8 100644 --- a/src/services/manager.cpp +++ b/src/services/manager.cpp @@ -338,8 +338,11 @@ namespace services { auto expand_size = app_configs.configs().db_cols(); for (const auto &info: db.id_to_info) { // expanding the first dimension asynchrounously. - auto promise = expander->async_expand(info.second->query[0], expand_size, info.second->galois_keys); - ed.queries[info.first] = std::move(promise); + ed.queries[info.first] = expander->async_expand( + info.second->query[0], + expand_size, + info.second->galois_keys + ); } mtx.lock();