Skip to content

Commit

Permalink
Add synchronized block
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <[email protected]>
  • Loading branch information
Aman Khare committed Feb 23, 2024
1 parent 608c8ae commit a6921f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected synchronized void processAsyncFetch(List<T> responses, List<FailedNode
reroute(reroutingKey, "post_response");
}

public int getNumberOfInFlightFetches() {
public synchronized int getNumberOfInFlightFetches() {
return cache.getInflightFetches();
}

Expand Down

0 comments on commit a6921f0

Please sign in to comment.