1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 11:42:18 +00:00

Fix compilation error in shard-client.cpp

This commit is contained in:
SpyCheese 2024-07-17 16:52:56 +03:00
parent d81b69e38b
commit 36b98e8aa0

View file

@ -200,10 +200,10 @@ void ShardClient::apply_all_shards() {
} }
for (const auto &[wc, desc] : masterchain_state_->get_workchain_list()) { for (const auto &[wc, desc] : masterchain_state_->get_workchain_list()) {
if (!workchains.count(wc) && desc->active && opts_->need_monitor(ShardIdFull{wc, shardIdAll}, masterchain_state_)) { if (!workchains.count(wc) && desc->active && opts_->need_monitor(ShardIdFull{wc, shardIdAll}, masterchain_state_)) {
auto Q = td::PromiseCreator::lambda( auto Q = td::PromiseCreator::lambda([SelfId = actor_id(this), promise = ig.get_promise(),
[SelfId = actor_id(this), promise = ig.get_promise(), wc](td::Result<td::Ref<ShardState>> R) mutable { workchain = wc](td::Result<td::Ref<ShardState>> R) mutable {
if (R.is_error()) { if (R.is_error()) {
promise.set_error(R.move_as_error_prefix(PSTRING() << "workchain " << wc << ": ")); promise.set_error(R.move_as_error_prefix(PSTRING() << "workchain " << workchain << ": "));
} else { } else {
td::actor::send_closure(SelfId, &ShardClient::downloaded_shard_state, R.move_as_ok(), std::move(promise)); td::actor::send_closure(SelfId, &ShardClient::downloaded_shard_state, R.move_as_ok(), std::move(promise));
} }