multi: add SpewLogClosure to avoid code repetition
This commit is contained in:
19 files changed
+57
-144
No files matched your search
@@ -870,10 +870,7 @@ func (c *ChanCloser) ReceiveClosingSigned( //nolint:funlen
|
||||
// With the closing transaction crafted, we'll now broadcast it
|
||||
// to the network.
|
||||
chancloserLog.Infof("Broadcasting cooperative close tx: %v",
|
||||
lnutils.NewLogClosure(func() string {
|
||||
return spew.Sdump(closeTx)
|
||||
}),
|
||||
)
|
||||
lnutils.SpewLogClosure(closeTx))
|
||||
|
||||
// Create a close channel label.
|
||||
chanID := c.cfg.Channel.ShortChanID()
|
||||
|
||||
Reference in new issue
Block a user