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

tapcfg: allow to configure lnd RPC timeout, increase default val #1177

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

guggero
Copy link
Member

@guggero guggero commented Nov 7, 2024

This fixes an issue where tapd would shut down because querying channels on a slow lnd would time out:

2024-10-30 10:06:21.535 [DBG] STAT: Setting the taproot-assets sub-server as errored: received critical error from sub-server (taproot-assets), shutting down: failed to handle outgoing message: error adding local alias: add alias: error listing local channels: rpc error: code = DeadlineExceeded desc = context deadline exceeded

Will add a similar PR to litd, as there the lndclient is created in a single place for all sub servers, so this daemon specific value would be ignored.

@coveralls
Copy link

coveralls commented Nov 7, 2024

Pull Request Test Coverage Report for Build 11778382498

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 35 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.02%) to 40.687%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tapcfg/config.go 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
tapcfg/config.go 1 0.0%
commitment/tap.go 2 84.43%
asset/asset.go 2 80.02%
tapgarden/caretaker.go 4 68.5%
tapdb/multiverse.go 7 60.32%
universe/interface.go 19 47.09%
Totals Coverage Status
Change from base Build 11720128932: -0.02%
Covered Lines: 24683
Relevant Lines: 60666

💛 - Coveralls

@GeorgeTsagk
Copy link
Member

pending lint / sample conf

This fixes an issue where tapd would shut down because querying channels
on a slow lnd would time out:

```
2024-10-30 10:06:21.535 [DBG] STAT: Setting the taproot-assets sub-server as errored: received critical error from sub-server (taproot-assets), shutting down: failed to handle outgoing message: error adding local alias: add alias: error listing local channels: rpc error: code = DeadlineExceeded desc = context deadline exceeded
```
This makes it more clear to the user what valid units are for any
duration based config entries.
Ignore long lines in the files we touched in the previous commit. For
the tapcfg/config.go file which only contains config elements, we add
the ignore directive to the whole file.
@guggero guggero requested review from Roasbeef and removed request for ffranr November 12, 2024 20:00
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🕸️

@Roasbeef Roasbeef added this pull request to the merge queue Nov 12, 2024
@Roasbeef Roasbeef removed this pull request from the merge queue due to a manual request Nov 12, 2024
@Roasbeef Roasbeef merged commit 7c1cd9a into main Nov 12, 2024
18 checks passed
@guggero guggero deleted the lnd-rpc-timeout branch November 12, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants