1
0
Fork 0
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:
EmelyanenkoK 2024-02-06 16:52:12 +03:00 committed by GitHub
parent c38b2928ec
commit e723213d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 73 additions and 0 deletions

View file

@ -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(),