Skip to content

Commit

Permalink
Configure call rate meter for CreateCryptoCurrencyPaymentAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Apr 15, 2021
1 parent 126885d commit c4c07d0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ final Optional<ServerInterceptor> rateMeteringInterceptor() {
.or(() -> Optional.of(CallRateMeteringInterceptor.valueOf(
new HashMap<>() {{
put(getCreatePaymentAccountMethod().getFullMethodName(), new GrpcCallRateMeter(1, MINUTES));
put(getCreateCryptoCurrencyPaymentAccountMethod().getFullMethodName(), new GrpcCallRateMeter(1, MINUTES));
put(getGetPaymentAccountsMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
put(getGetPaymentMethodsMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
put(getGetPaymentAccountFormMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
Expand Down

0 comments on commit c4c07d0

Please sign in to comment.