From 17907e4c4499b0a0f980162fef1da8eb51383dc8 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sat, 11 May 2024 18:18:13 +0200 Subject: [PATCH] lower cache timeout for channel policies --- .../main/java/de/cotto/lndmanagej/grpc/GrpcChannelPolicy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcChannelPolicy.java b/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcChannelPolicy.java index e422cc40..c8da8d5a 100644 --- a/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcChannelPolicy.java +++ b/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcChannelPolicy.java @@ -23,8 +23,8 @@ public GrpcChannelPolicy(GrpcService grpcService, GrpcGetInfo grpcGetInfo, GrpcP this.grpcGetInfo = grpcGetInfo; this.grpcPolicy = grpcPolicy; channelEdgeCache = new CacheBuilder() - .withExpiry(Duration.ofMinutes(1)) - .withRefresh(Duration.ofSeconds(30)) + .withExpiry(Duration.ofSeconds(10)) + .withRefresh(Duration.ofSeconds(5)) .build(this::getChannelEdgeWithoutCache); }