Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: OneSizeFitQuorum <[email protected]>
  • Loading branch information
OneSizeFitsQuorum committed Sep 18, 2023
1 parent 1b54bfa commit 3b078df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ private static class RequestMap {
this.resource = new RequestLimits(elementLimit, megabyteLimit);
this.raftServerMetrics = raftServerMetrics;

raftServerMetrics.addNumPendingRequestsGauge(resource::getElementCount);
raftServerMetrics.addNumPendingRequestsMegaByteSize(resource::getMegaByteSize);
raftServerMetrics.addNumPendingRequestsGauge(() -> resource.getElementCount());
raftServerMetrics.addNumPendingRequestsMegaByteSize(() -> resource.getMegaByteSize());
}

Permit tryAcquire(Message message) {
Expand Down

0 comments on commit 3b078df

Please sign in to comment.