Configure call rate meter for CreateCryptoCurrencyPaymentAccount

This commit is contained in:
ghubstan 2021-04-15 14:39:23 -03:00
parent 126885d570
commit c4c07d0f06
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -174,6 +174,7 @@ class GrpcPaymentAccountsService extends PaymentAccountsImplBase {
.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));