mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
multi: refactor external subserver config
As a preparation for making more and more implementation details configurable, we add a new ImplementationCfg struct that houses all the interfaces that can be defined externally.
This commit is contained in:
@@ -99,6 +99,7 @@ func Start(extraArgs string, rpcReady Callback) {
|
||||
Ready: rpcListening,
|
||||
}},
|
||||
}
|
||||
implCfg := loadedConfig.ImplementationConfig()
|
||||
|
||||
// Call the "real" main in a nested manner so the defers will properly
|
||||
// be executed in the case of a graceful shutdown.
|
||||
@@ -107,7 +108,7 @@ func Start(extraArgs string, rpcReady Callback) {
|
||||
defer close(quit)
|
||||
|
||||
if err := lnd.Main(
|
||||
loadedConfig, cfg, shutdownInterceptor,
|
||||
loadedConfig, cfg, implCfg, shutdownInterceptor,
|
||||
); err != nil {
|
||||
if e, ok := err.(*flags.Error); ok &&
|
||||
e.Type == flags.ErrHelp {
|
||||
|
Reference in New Issue
Block a user