Skip to content

Commit

Permalink
Add rate meter for getnetwork method (1/sec)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Jun 17, 2022
1 parent 815e050 commit 71365be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ final Optional<ServerInterceptor> rateMeteringInterceptor() {
return getCustomRateMeteringInterceptor(coreApi.getConfig().appDataDir, this.getClass())
.or(() -> Optional.of(CallRateMeteringInterceptor.valueOf(
new HashMap<>() {{
put(getGetNetworkMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
put(getGetBalancesMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
put(getGetAddressBalanceMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
put(getGetFundingAddressesMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
Expand Down

0 comments on commit 71365be

Please sign in to comment.