@@ -95,7 +95,7 @@ func New(config *Config, lisCfg *ListenerCfg) *Daemon {
9595 // We send exactly one error on this channel if something goes
9696 // wrong at runtime. Or a nil value if the shutdown was
9797 // successful. But in case nobody's listening, we don't want to
98- // block on it so we buffer it.
98+ // block on it, so we buffer it.
9999 ErrChan : make (chan error , 1 ),
100100
101101 quit : make (chan struct {}),
@@ -135,9 +135,9 @@ func (d *Daemon) Start() error {
135135 if errors .Is (err , bbolt .ErrTimeout ) {
136136 // We're trying to be started as a standalone Loop daemon, most
137137 // likely LiT is already running and blocking the DB
138- return fmt .Errorf ("%v: make sure no other loop daemon " +
139- "process (standalone or embedded in " +
140- "lightning-terminal) is running" , err )
138+ return fmt .Errorf ("%v: make sure no other loop daemon process " +
139+ "(standalone or embedded in lightning-terminal) is " +
140+ "running" , err )
141141 }
142142 if err != nil {
143143 return err
@@ -166,9 +166,9 @@ func (d *Daemon) Start() error {
166166func (d * Daemon ) StartAsSubserver (lndGrpc * lndclient.GrpcLndServices ,
167167 withMacaroonService bool ) error {
168168
169- // There should be no reason to start the daemon twice. Therefore return
170- // an error if that's tried. This is mostly to guard against Start and
171- // StartAsSubserver both being called.
169+ // There should be no reason to start the daemon twice. Therefore,
170+ // return an error if that's tried. This is mostly to guard against
171+ // Start and StartAsSubserver both being called.
172172 if atomic .AddInt32 (& d .started , 1 ) != 1 {
173173 return errOnlyStartOnce
174174 }
@@ -179,8 +179,8 @@ func (d *Daemon) StartAsSubserver(lndGrpc *lndclient.GrpcLndServices,
179179
180180 // With lnd already pre-connected, initialize everything else, such as
181181 // the swap server client, the RPC server instance and our main swap
182- // handlers. If this fails, then nothing has been started yet and we can
183- // just return the error.
182+ // handlers. If this fails, then nothing has been started yet, and we
183+ // can just return the error.
184184 err := d .initialize (withMacaroonService )
185185 if errors .Is (err , bbolt .ErrTimeout ) {
186186 // We're trying to be started inside LiT so there most likely is
@@ -370,8 +370,8 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
370370 }
371371 }
372372
373- // Both the client RPC server and and the swap server client should
374- // stop on main context cancel. So we create it early and pass it down.
373+ // Both the client RPC server and the swap server client should stop
374+ // on main context cancel. So we create it early and pass it down.
375375 d .mainCtx , d .mainCtxCancel = context .WithCancel (context .Background ())
376376
377377 log .Infof ("Swap server address: %v" , d .cfg .Server .Host )
0 commit comments