Skip to content

terminal: dont block indefinitely on macaroon channel #616

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

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

ellemouton
Copy link
Member

@ellemouton ellemouton commented Aug 7, 2023

In this commit, we ensure that when we wait on the macaroon channel for the macaroon from the integrated LND, that we also listen to other exit signals such as the interceptor, lndQuit chanel and the error channel. This is to prevent shutdown from blocking forever in the case where there was an issue preventing LND from sending the initial macaroon.

The issue was caught in this comment: #541 (comment)

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

tACK, LGTM 🎉
Very nice fix, thanks!

@ellemouton ellemouton force-pushed the dontBlockOnMacChannel branch from ec8df32 to cba7293 Compare August 7, 2023 10:26
@ellemouton ellemouton force-pushed the dontBlockOnMacChannel branch from cba7293 to 9f4993f Compare August 30, 2023 18:12
@lightninglabs-deploy
Copy link

@ViktorTigerstrom: review reminder

In this commit, we ensure that when we wait on the macaroon channel for
the macaroon from the integrated LND, that we also listen to other exit
signals such as the interceptor, lndQuit chanel and the error channel.
This is to prevent shutdown from blocking forever in the case where
there was an issue preventing LND from sending the initial macaroon.
@ellemouton ellemouton force-pushed the dontBlockOnMacChannel branch from 9f4993f to dd9711e Compare September 8, 2023 07:12
Copy link
Contributor

@ViktorTigerstrom ViktorTigerstrom left a comment

Choose a reason for hiding this comment

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

tACK LGTM 🚀 🔥!

@ellemouton ellemouton merged commit 59ebfe4 into lightninglabs:master Sep 12, 2023
@ellemouton ellemouton deleted the dontBlockOnMacChannel branch September 12, 2023 11:11
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 this pull request may close these issues.

4 participants