multi: fix linter warnings

This commit is contained in:
Olaoluwa Osuntokun committed 2018-01-22 19:19:56 -08:00
1 parent ca613a625f
commit 783f01e1c7
6 files changed
+20 -24

No files matched your search

+5 -1
View File
@@ -170,7 +170,11 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
quit: make(chan struct{}),
}
s.witnessBeacon = NewPreimageBeacon(s.invoices, chanDB.NewWitnessCache())
s.witnessBeacon = &preimageBeacon{
invoices: s.invoices,
wCache: chanDB.NewWitnessCache(),
subscribers: make(map[uint64]*preimageSubcriber),
}
// If the debug HTLC flag is on, then we invoice a "master debug"
// invoice which all outgoing payments will be sent and all incoming