Skip to content

Commit 589cebc

Browse files
committed
config: pass tower manager pointer in to PopulateDependencies
In this commit, we let the explicit wtclient.Manager struct be passed in to PopulateDependencies instead of the tower client interface. We need to do this since we do allow the tower client interface to be nil if the client is not active. So to avoid the golang gotcha where the interface value will be seen as not nil even though the underlying value is nil, we pass in the explicit pointer instead.
1 parent ba4021c commit 589cebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subrpcserver_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (s *subRPCServerConfigs) PopulateDependencies(cfg *Config,
113113
chanStateDB *channeldb.ChannelStateDB,
114114
sweeper *sweep.UtxoSweeper,
115115
tower *watchtower.Standalone,
116-
towerClientMgr wtclient.ClientManager,
116+
towerClientMgr *wtclient.Manager,
117117
tcpResolver lncfg.TCPResolver,
118118
genInvoiceFeatures func() *lnwire.FeatureVector,
119119
genAmpInvoiceFeatures func() *lnwire.FeatureVector,

0 commit comments

Comments
 (0)