Skip to content

Commit 00a8a39

Browse files
committed
frdrpc/rpcserver: rename createDefaultMacaroonFile
Rename createDefaultMacaroonFile to withMacaroonService since this is now a more appropriate name.
1 parent 8a59081 commit 00a8a39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frdrpcserver/rpcserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ func (s *RPCServer) Start() error {
327327
// for REST (if enabled), instead of creating an own mux and HTTP server, we
328328
// register to an existing one.
329329
func (s *RPCServer) StartAsSubserver(lndClient lndclient.LndServices,
330-
createDefaultMacaroonFile bool) error {
330+
withMacaroonService bool) error {
331331

332332
if atomic.AddInt32(&s.started, 1) != 1 {
333333
return errServerAlreadyStarted
334334
}
335335

336-
if createDefaultMacaroonFile {
336+
if withMacaroonService {
337337
// Start the macaroon service and let it create its default
338338
// macaroon in case it doesn't exist yet.
339339
if err := s.macaroonService.Start(); err != nil {

0 commit comments

Comments
 (0)