relax grpc rate limits for getVersion()

This commit is contained in:
woodser 2021-12-16 20:14:17 -05:00
parent ce538c5ca6
commit fae477fc51

View File

@ -78,7 +78,7 @@ public class GrpcVersionService extends GetVersionImplBase {
return getCustomRateMeteringInterceptor(coreApi.getConfig().appDataDir, this.getClass())
.or(() -> Optional.of(CallRateMeteringInterceptor.valueOf(
new HashMap<>() {{
put(getGetVersionMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
put(getGetVersionMethod().getFullMethodName(), new GrpcCallRateMeter(5, SECONDS));
}}
)));
}