Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add custom-timeout-values-for-requester-method #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dayvvo
Copy link

@Dayvvo Dayvvo commented Jan 20, 2025

fixes #295

@@ -819,6 +825,7 @@ export class NWCClient {
nip47Method: Nip47SingleMethod,
params: unknown,
resultValidator: (result: T) => boolean,
timeoutValues?: Nip47TimeoutValues,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less important, but can this also be added to the executeMultiNip47Request method?

@@ -544,6 +549,7 @@ export class NWCClient {
"get_info",
{},
(result) => !!result.methods,
{ replyTimeout: 10000 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally you also wanted to be able to customize this on a per-request basis right? but I guess this is ok.

I would probably also apply this smaller timeout to other non-payment requests (get balance, get budget, list transactions, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants