Skip to content

Commit

Permalink
using actor to update snapshot for reader
Browse files Browse the repository at this point in the history
  • Loading branch information
fatcat22 committed Oct 28, 2024
1 parent 5b17c02 commit 28874b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/db/celldb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class CellDb : public CellDbBase {
void update_snapshot(std::unique_ptr<td::KeyValueReader> snapshot, std::unique_ptr<td::KeyValueReader> snapshot2) {
started_ = true;
boc_->set_loader(std::make_unique<vm::CellLoader>(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<std::shared_ptr<vm::CellDbReader>> promise);
void get_last_deleted_mc_state(td::Promise<BlockSeqno> promise);
Expand Down

0 comments on commit 28874b6

Please sign in to comment.