rpcserver+subrpcserver: don't use global cfg
This commit is contained in:
parent
7c1304b31c
commit
50e86f88fe
@ -587,7 +587,7 @@ func newRPCServer(cfg *Config, s *server, macService *macaroons.Service,
|
||||
// the dependencies they need are properly populated within each sub
|
||||
// server configuration struct.
|
||||
err = subServerCgs.PopulateDependencies(
|
||||
s.cc, cfg.networkDir, macService, atpl, invoiceRegistry,
|
||||
cfg, s.cc, cfg.networkDir, macService, atpl, invoiceRegistry,
|
||||
s.htlcSwitch, activeNetParams.Params, s.chanRouter,
|
||||
routerBackend, s.nodeSigner, s.chanDB, s.sweeper, tower,
|
||||
s.towerClient, cfg.net.ResolveTCPAddr, genInvoiceFeatures,
|
||||
|
@ -80,7 +80,7 @@ type subRPCServerConfigs struct {
|
||||
//
|
||||
// NOTE: This MUST be called before any callers are permitted to execute the
|
||||
// FetchConfig method.
|
||||
func (s *subRPCServerConfigs) PopulateDependencies(cc *chainControl,
|
||||
func (s *subRPCServerConfigs) PopulateDependencies(cfg *Config, cc *chainControl,
|
||||
networkDir string, macService *macaroons.Service,
|
||||
atpl *autopilot.Manager,
|
||||
invoiceRegistry *invoices.InvoiceRegistry,
|
||||
|
Loading…
Reference in New Issue
Block a user