Skip to content

Commit

Permalink
Fix limit on refire
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Sep 9, 2024
1 parent 56168f7 commit e07f596
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lite-server-daemon/adnl-lite-proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ namespace ton::liteserver {
LOG(INFO) << "Got query to: " << dst.bits256_value().to_hex();

if (inited) {

long long limit = 0;
if (refire == 0) {
usage[dst]++;
auto k = limits[dst];
Expand Down Expand Up @@ -1030,10 +1030,11 @@ namespace ton::liteserver {
return;
}
}
limit = std::get<1>(k);
}
LOG(INFO)
<< "Accept to: " << dst.bits256_value().to_hex() << ", usage: " << usage[dst] << " limit: "
<< std::get<1>(k) << " refire: " << refire;
<< limit << " refire: " << refire;

auto init_data = data.clone();
auto E1 = fetch_tl_object<lite_api::liteServer_query>(init_data, true);
Expand Down

0 comments on commit e07f596

Please sign in to comment.