lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
488 stars 82 forks source link

status: apply functional options on subServer init #705

Closed ViktorTigerstrom closed 5 months ago

ViktorTigerstrom commented 5 months ago

In #694 we added support for initialising the subServer struct with functional options. Unfortunately though, with the last refactors in the PR I forgot to also apply the functional options in subServer constructor function. Sorry for that, this was totally my bad! The current resulting behaviour is that the litcli status won't function as expected for lnd, while lnd Subserver is in the WalletReady state (until it enters the Running state).

This PR addresses the issue, and applies the functional options in the subServer constructor.