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

Missing CancellationTokens for some methods in ILightningClient #68

Closed
konak opened this issue Apr 17, 2022 · 5 comments · Fixed by #75
Closed

Missing CancellationTokens for some methods in ILightningClient #68

konak opened this issue Apr 17, 2022 · 5 comments · Fixed by #75

Comments

@konak
Copy link

konak commented Apr 17, 2022

Some methods in ILightningClient do not have CancellationToken as parameter:

    Task<BitcoinAddress> GetDepositAddress();
    Task<ConnectionResult> ConnectTo(NodeInfo nodeInfo);
    Task CancelInvoice(string invoiceId);

Is that Ok ? Because in some cases they can became an issue for client and backend responsiveness.

@dennisreimann
Copy link
Member

@Kukks Is there a special reason why we don't have them for ConnectTo and GetDepositAddress? For CancelInvoice we are explicit and passing a CancellationToken.None to the underlying implementations, but for the others we are just omitting the CT, though I think we should pass it.

@Kukks
Copy link
Member

Kukks commented May 13, 2022

@Kukks Is there a special reason why we don't have them for ConnectTo and GetDepositAddress? For CancelInvoice we are explicit and passing a CancellationToken.None to the underlying implementations, but for the others we are just omitting the CT, though I think we should pass it.

ack for adding them

@dennisreimann
Copy link
Member

@Kukks I can do that next — what about the CancelInvoice one? Are we omitting it consciously or shall it get added too?

@Kukks
Copy link
Member

Kukks commented May 13, 2022 via email

dennisreimann added a commit to dennisreimann/BTCPayServer.Lightning that referenced this issue May 17, 2022
dennisreimann added a commit to dennisreimann/BTCPayServer.Lightning that referenced this issue May 17, 2022
NicolasDorier pushed a commit that referenced this issue May 18, 2022
@NicolasDorier
Copy link
Member

Pushed new packages.

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

Successfully merging a pull request may close this issue.

4 participants