mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
relax grpc rate limits for getVersion()
This commit is contained in:
parent
ce538c5ca6
commit
fae477fc51
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue