mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 05:42:37 +02:00
multi: add NewLogClosure
in lnutils
to avoid repetition
And replaces all usage of `logClosure` with `lnutils.LogClosure`.
This commit is contained in:
@@ -1432,7 +1432,9 @@ func (b *Builder) processUpdate(msg interface{},
|
||||
}
|
||||
|
||||
log.Tracef("New channel update applied: %v",
|
||||
newLogClosure(func() string { return spew.Sdump(msg) }))
|
||||
lnutils.NewLogClosure(func() string {
|
||||
return spew.Sdump(msg)
|
||||
}))
|
||||
b.stats.incNumChannelUpdates()
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user