rpcserver+subrpcserver: don't use global cfg

This commit is contained in:
Oliver Gugger committed 2020-05-14 16:18:02 +02:00
1 parent 7c1304b31c
commit 50e86f88fe
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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,