From c38b2928ec0aad978fb46f39c0a450aca184f2f6 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Fri, 2 Feb 2024 17:02:38 +0300 Subject: [PATCH] Fix typo in archive-slice.cpp (#850) (#879) --- validator/db/archive-slice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/db/archive-slice.cpp b/validator/db/archive-slice.cpp index 5f1bc7081..d3d633604 100644 --- a/validator/db/archive-slice.cpp +++ b/validator/db/archive-slice.cpp @@ -532,7 +532,7 @@ void ArchiveSlice::set_async_mode(bool mode, td::Promise promise) { ig.add_promise(std::move(promise)); for (auto &p : packages_) { - td::actor::send_closure(p.writer, &PackageWriter::set_async_mode, mode, std::move(promise)); + td::actor::send_closure(p.writer, &PackageWriter::set_async_mode, mode, ig.get_promise()); } }