mirror of
https://github.com/lightninglabs/faraday.git
synced 2026-08-13 12:33:35 +02:00
frdrpc/rpcserver: rename createDefaultMacaroonFile
Rename createDefaultMacaroonFile to withMacaroonService since this is now a more appropriate name.
This commit is contained in:
parent
8a59081473
commit
00a8a39aa8
1 changed files with 2 additions and 2 deletions
|
|
@ -327,13 +327,13 @@ func (s *RPCServer) Start() error {
|
|||
// for REST (if enabled), instead of creating an own mux and HTTP server, we
|
||||
// register to an existing one.
|
||||
func (s *RPCServer) StartAsSubserver(lndClient lndclient.LndServices,
|
||||
createDefaultMacaroonFile bool) error {
|
||||
withMacaroonService bool) error {
|
||||
|
||||
if atomic.AddInt32(&s.started, 1) != 1 {
|
||||
return errServerAlreadyStarted
|
||||
}
|
||||
|
||||
if createDefaultMacaroonFile {
|
||||
if withMacaroonService {
|
||||
// Start the macaroon service and let it create its default
|
||||
// macaroon in case it doesn't exist yet.
|
||||
if err := s.macaroonService.Start(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue