multi: add SpewLogClosure to avoid code repetition
This commit is contained in:
19 files changed
+57
-144
No files matched your search
+1
-4
@@ -1377,10 +1377,7 @@ func (s *UtxoSweeper) handleInputSpent(spend *chainntnfs.SpendDetail) {
|
||||
|
||||
log.Debugf("Detected third party spend related to in flight "+
|
||||
"inputs (is_ours=%v): %v", isOurTx,
|
||||
lnutils.NewLogClosure(func() string {
|
||||
return spew.Sdump(spend.SpendingTx)
|
||||
}),
|
||||
)
|
||||
lnutils.SpewLogClosure(spend.SpendingTx))
|
||||
}
|
||||
|
||||
// We now use the spending tx to update the state of the inputs.
|
||||
|
||||
Reference in new issue
Block a user