|
|
|
@ -484,6 +484,7 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Create the reservation rpc server.
|
|
|
|
|
if d.cfg.EnableExperimental {
|
|
|
|
|
reservationStore := reservation.NewSQLStore(baseDb)
|
|
|
|
|
reservationConfig := &reservation.Config{
|
|
|
|
|
Store: reservationStore,
|
|
|
|
@ -496,6 +497,7 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
|
|
|
|
|
d.reservationManager = reservation.NewManager(
|
|
|
|
|
reservationConfig,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Now finally fully initialize the swap client RPC server instance.
|
|
|
|
|
d.swapClientServer = swapClientServer{
|
|
|
|
@ -576,6 +578,7 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
|
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
// Start the reservation manager.
|
|
|
|
|
if d.reservationManager != nil {
|
|
|
|
|
d.wg.Add(1)
|
|
|
|
|
go func() {
|
|
|
|
|
defer d.wg.Done()
|
|
|
|
@ -598,6 +601,7 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
|
|
|
|
|
d.internalErrChan <- err
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Last, start our internal error handler. This will return exactly one
|
|
|
|
|
// error or nil on the main error channel to inform the caller that
|
|
|
|
|