From 7c1e8cb741b46bca41bfdfe8b6bec7ca9067ed78 Mon Sep 17 00:00:00 2001 From: dayvvo Date: Tue, 21 Jan 2025 23:43:19 +0100 Subject: [PATCH] fix: include shorter reply timeout for non payment requests --- src/NWCClient.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NWCClient.ts b/src/NWCClient.ts index bcf2566..b3a7fa2 100644 --- a/src/NWCClient.ts +++ b/src/NWCClient.ts @@ -564,6 +564,7 @@ export class NWCClient { "get_budget", {}, (result) => result !== undefined, + { replyTimeout: 10000 }, ); return result; } catch (error) { @@ -578,6 +579,7 @@ export class NWCClient { "get_balance", {}, (result) => result.balance !== undefined, + { replyTimeout: 10000 }, ); return result; } catch (error) { @@ -727,6 +729,7 @@ export class NWCClient { "list_transactions", request, (response) => !!response.transactions, + { replyTimeout: 10000 }, ); return result;