mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +02:00
multi: add SpewLogClosure
to avoid code repetition
This commit is contained in:
@ -12,7 +12,6 @@ import (
|
||||
"github.com/btcsuite/btcd/btcec/v2"
|
||||
"github.com/btcsuite/btcd/btcutil"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/go-errors/errors"
|
||||
"github.com/lightningnetwork/lnd/batch"
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
@ -1432,9 +1431,7 @@ func (b *Builder) processUpdate(msg interface{},
|
||||
}
|
||||
|
||||
log.Tracef("New channel update applied: %v",
|
||||
lnutils.NewLogClosure(func() string {
|
||||
return spew.Sdump(msg)
|
||||
}))
|
||||
lnutils.SpewLogClosure(msg))
|
||||
b.stats.incNumChannelUpdates()
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user