Skip to content

Commit

Permalink
fix: include shorter reply timeout for non payment requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayvvo committed Jan 21, 2025
1 parent c5799e3 commit 7c1e8cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NWCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ export class NWCClient {
"get_budget",
{},
(result) => result !== undefined,
{ replyTimeout: 10000 },
);
return result;
} catch (error) {
Expand All @@ -578,6 +579,7 @@ export class NWCClient {
"get_balance",
{},
(result) => result.balance !== undefined,
{ replyTimeout: 10000 },
);
return result;
} catch (error) {
Expand Down Expand Up @@ -727,6 +729,7 @@ export class NWCClient {
"list_transactions",
request,
(response) => !!response.transactions,
{ replyTimeout: 10000 },
);

return result;
Expand Down

0 comments on commit 7c1e8cb

Please sign in to comment.