Skip to content

Commit

Permalink
avoid move
Browse files Browse the repository at this point in the history
  • Loading branch information
algonathan committed Dec 10, 2022
1 parent 0035c8b commit 2f516d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/services/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2f516d0

Please sign in to comment.