From 890a80a49b4cdb4b7356a28713d95814bb111975 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Fri, 7 Jun 2024 10:57:36 +0200 Subject: [PATCH] increase limit for "get payments" via grpc --- .../src/main/java/de/cotto/lndmanagej/grpc/GrpcPayments.java | 2 +- .../test/java/de/cotto/lndmanagej/grpc/GrpcPaymentsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcPayments.java b/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcPayments.java index 68bcc379..c72f09bf 100644 --- a/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcPayments.java +++ b/grpc-adapter/src/main/java/de/cotto/lndmanagej/grpc/GrpcPayments.java @@ -32,7 +32,7 @@ @Component public class GrpcPayments { - private static final int LIMIT = 1_000; + private static final int LIMIT = 5_000; private final GrpcService grpcService; private final Logger logger = LoggerFactory.getLogger(getClass()); diff --git a/grpc-adapter/src/test/java/de/cotto/lndmanagej/grpc/GrpcPaymentsTest.java b/grpc-adapter/src/test/java/de/cotto/lndmanagej/grpc/GrpcPaymentsTest.java index 90174d3e..8d8eba67 100644 --- a/grpc-adapter/src/test/java/de/cotto/lndmanagej/grpc/GrpcPaymentsTest.java +++ b/grpc-adapter/src/test/java/de/cotto/lndmanagej/grpc/GrpcPaymentsTest.java @@ -57,7 +57,7 @@ @ExtendWith(MockitoExtension.class) class GrpcPaymentsTest { private static final long ADD_INDEX_OFFSET = 123; - private static final int LIMIT = 1_000; + private static final int LIMIT = 5_000; private static final String PAYMENT_REQUEST = "abc"; @InjectMocks