Skip to content

Commit

Permalink
Fix unused variable
Browse files Browse the repository at this point in the history
f04cb979b649ed479feea94f8e8391e4a0512973
  • Loading branch information
coteeq committed Jul 12, 2024
1 parent a6583d2 commit c232607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt/yt/core/concurrency/throughput_throttler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class TReconfigurableThroughputThrottler
return request->Promise;
}

static i64 GetDeltaAvailable(TInstant current, TInstant lastUpdated, TDuration period, double limit)
static i64 GetDeltaAvailable(TInstant current, TInstant lastUpdated, double limit)
{
auto timePassed = current - lastUpdated;

Expand Down Expand Up @@ -375,7 +375,7 @@ class TReconfigurableThroughputThrottler
Available_ = maxAvailable;
LastUpdated_ = now;
} else {
auto deltaAvailable = GetDeltaAvailable(now, lastUpdated, period, *limit);
auto deltaAvailable = GetDeltaAvailable(now, lastUpdated, *limit);

auto newAvailable = ClampingAdd(Available_.load(), deltaAvailable, maxAvailable);
YT_VERIFY(newAvailable <= maxAvailable);
Expand Down Expand Up @@ -423,7 +423,7 @@ class TReconfigurableThroughputThrottler
auto current = GetInstant();
auto lastUpdated = LastUpdated_.load();

auto deltaAvailable = GetDeltaAvailable(current, lastUpdated, period, limit);
auto deltaAvailable = GetDeltaAvailable(current, lastUpdated, limit);

if (deltaAvailable == 0) {
return;
Expand Down

0 comments on commit c232607

Please sign in to comment.