mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Log number of LS queries by type (#891)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
c38b2928ec
commit
e723213d5c
6 changed files with 73 additions and 0 deletions
|
@ -131,9 +131,11 @@ void LiteQuery::start_up() {
|
|||
|
||||
auto F = fetch_tl_object<ton::lite_api::Function>(std::move(query_), true);
|
||||
if (F.is_error()) {
|
||||
td::actor::send_closure(manager_, &ValidatorManager::add_lite_query_stats, 0); // unknown
|
||||
abort_query(F.move_as_error());
|
||||
return;
|
||||
}
|
||||
td::actor::send_closure(manager_, &ValidatorManager::add_lite_query_stats, F.ok()->get_id());
|
||||
|
||||
lite_api::downcast_call(
|
||||
*F.move_as_ok().get(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue