@@ -163,7 +163,7 @@ func (d *Daemon) Start() error {
163
163
// for REST (if enabled), instead of creating an own mux and HTTP server, we
164
164
// register to an existing one.
165
165
func (d * Daemon ) StartAsSubserver (lndGrpc * lndclient.GrpcLndServices ,
166
- createDefaultMacaroonFile bool ) error {
166
+ withMacaroonService bool ) error {
167
167
168
168
// There should be no reason to start the daemon twice. Therefore return
169
169
// an error if that's tried. This is mostly to guard against Start and
@@ -180,7 +180,7 @@ func (d *Daemon) StartAsSubserver(lndGrpc *lndclient.GrpcLndServices,
180
180
// the swap server client, the RPC server instance and our main swap
181
181
// handlers. If this fails, then nothing has been started yet and we can
182
182
// just return the error.
183
- err := d .initialize (createDefaultMacaroonFile )
183
+ err := d .initialize (withMacaroonService )
184
184
if errors .Is (err , bbolt .ErrTimeout ) {
185
185
// We're trying to be started inside LiT so there most likely is
186
186
// another standalone Loop process blocking the DB.
@@ -347,7 +347,7 @@ func (d *Daemon) startWebServers() error {
347
347
// the swap client RPC server instance and our main swap and error handlers. If
348
348
// this method fails with an error then no goroutine was started yet and no
349
349
// cleanup is necessary. If it succeeds, then goroutines have been spawned.
350
- func (d * Daemon ) initialize (createDefaultMacaroonFile bool ) error {
350
+ func (d * Daemon ) initialize (withMacaroonService bool ) error {
351
351
// If no swap server is specified, use the default addresses for mainnet
352
352
// and testnet.
353
353
if d .cfg .Server .Host == "" {
@@ -382,7 +382,7 @@ func (d *Daemon) initialize(createDefaultMacaroonFile bool) error {
382
382
RequiredPermissions [endpoint ] = perm
383
383
}
384
384
385
- if createDefaultMacaroonFile {
385
+ if withMacaroonService {
386
386
// Start the macaroon service and let it create its default
387
387
// macaroon in case it doesn't exist yet.
388
388
d .macaroonService , err = lndclient .NewMacaroonService (
0 commit comments