mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Extra shard overlay stats
This commit is contained in:
parent
8c4bc5b3f1
commit
da137fecf5
7 changed files with 62 additions and 4 deletions
|
|
@ -661,7 +661,12 @@ void OverlayImpl::get_stats(td::Promise<tl_object_ptr<ton_api::engine_validator_
|
|||
res->stats_.push_back(
|
||||
create_tl_object<ton_api::engine_validator_oneStat>("neighbours_cnt", PSTRING() << neighbours_.size()));
|
||||
|
||||
promise.set_value(std::move(res));
|
||||
callback_->get_stats_extra([promise = std::move(promise), res = std::move(res)](td::Result<std::string> R) mutable {
|
||||
if (R.is_ok()) {
|
||||
res->extra_ = R.move_as_ok();
|
||||
}
|
||||
promise.set_value(std::move(res));
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace overlay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue