From 002a6860a70fc4e90a10c070eb0efceef82abfc3 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Wed, 1 Dec 2021 21:15:32 +0100 Subject: [PATCH] reduce cache duration --- .../main/java/de/cotto/lndmanagej/grpc/GrpcChannelPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8b31a137..89b2dbc5 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 @@ -20,7 +20,7 @@ public class GrpcChannelPolicy { this.grpcService = grpcService; this.grpcGetInfo = grpcGetInfo; channelEdgeCache = new CacheBuilder() - .withExpiry(Duration.ofMinutes(1)) + .withExpiry(Duration.ofSeconds(10)) .build(this::getChannelEdgeWithoutCache); }