mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
relax grpc rate limits for getVersion()
This commit is contained in:
parent
ce538c5ca6
commit
fae477fc51
@ -78,7 +78,7 @@ public class GrpcVersionService extends GetVersionImplBase {
|
|||||||
return getCustomRateMeteringInterceptor(coreApi.getConfig().appDataDir, this.getClass())
|
return getCustomRateMeteringInterceptor(coreApi.getConfig().appDataDir, this.getClass())
|
||||||
.or(() -> Optional.of(CallRateMeteringInterceptor.valueOf(
|
.or(() -> Optional.of(CallRateMeteringInterceptor.valueOf(
|
||||||
new HashMap<>() {{
|
new HashMap<>() {{
|
||||||
put(getGetVersionMethod().getFullMethodName(), new GrpcCallRateMeter(1, SECONDS));
|
put(getGetVersionMethod().getFullMethodName(), new GrpcCallRateMeter(5, SECONDS));
|
||||||
}}
|
}}
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user