Skip to content

Commit a79187f

Browse files
terminal: add clarifying comment for LND startup
As it's quite confusing by just looking at `litd` codebase that LND will execute `litd`'s `RegisterGrpcSubserver` function during the setup of the LND connection, we add a comment to clarify this.
1 parent ef87c7a commit a79187f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

terminal.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@ func (g *LightningTerminal) start(ctx context.Context) error {
597597
go func() {
598598
defer g.wg.Done()
599599

600+
// Note that LND will call litd's RegisterGrpcSubserver
601+
// function during the execution of this, as `g` is
602+
// referenced in the passed `implCfg`
600603
err := lnd.Main(g.cfg.Lnd, lisCfg, implCfg, interceptor)
601604
if e, ok := err.(*flags.Error); err != nil &&
602605
(!ok || e.Type != flags.ErrHelp) {

0 commit comments

Comments
 (0)