Skip to content

Commit 84adc05

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 f1faed6 commit 84adc05

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
@@ -555,6 +555,9 @@ func (g *LightningTerminal) start(ctx context.Context) error {
555555
go func() {
556556
defer g.wg.Done()
557557

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

0 commit comments

Comments
 (0)