From 28874b6322433c88ad17532a775772c0af016b34 Mon Sep 17 00:00:00 2001 From: "zhe.yang" Date: Mon, 28 Oct 2024 21:45:56 +0800 Subject: [PATCH] using actor to update snapshot for reader --- validator/db/celldb.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/db/celldb.hpp b/validator/db/celldb.hpp index 2421c2e9e..27ee8c97b 100644 --- a/validator/db/celldb.hpp +++ b/validator/db/celldb.hpp @@ -170,7 +170,7 @@ class CellDb : public CellDbBase { void update_snapshot(std::unique_ptr snapshot, std::unique_ptr snapshot2) { started_ = true; boc_->set_loader(std::make_unique(std::move(snapshot), on_load_callback_)).ensure(); - cell_db_read_.get_actor_unsafe().update_snapshot(std::move(snapshot2)); + td::actor::send_closure(cell_db_read_, &CellDbIn::update_snapshot, std::move(snapshot2)); } void get_cell_db_reader(td::Promise> promise); void get_last_deleted_mc_state(td::Promise promise);