Skip to content

Commit

Permalink
fix: resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
astsiapanay committed Mar 14, 2024
1 parent 3b65c6f commit 098a23c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ private RateLimitResult checkTokenLimit(ProxyContext context, Limit limit, long
private RateLimitResult checkRequestLimit(ProxyContext context, Limit limit, long timestamp) {
String tokensPath = getPathToRequests(context.getDeployment().getName());
ResourceDescription resourceDescription = getResourceDescription(context, tokensPath);
// pass array to hold rate limit result returned by the function to compute the resource
RateLimitResult[] result = new RateLimitResult[1];
resourceService.computeResource(resourceDescription, json -> updateRequestLimit(json, timestamp, limit, result));
return result[0];
Expand Down

0 comments on commit 098a23c

Please sign in to comment.