mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 22:46:40 +01:00
This commit adds a new towerID-to-sessionID index to the wtclient DB. The commit also contains the necessary migration required in order to build the index for an existing client. This index will greatly improve the lookup of sessions for a given tower ID.
14 lines
355 B
Go
14 lines
355 B
Go
package migration1
|
|
|
|
import (
|
|
"github.com/btcsuite/btclog"
|
|
)
|
|
|
|
// log is a logger that is initialized as disabled. This means the package will
|
|
// not perform any logging by default until a logger is set.
|
|
var log = btclog.Disabled
|
|
|
|
// UseLogger uses a specified Logger to output package logging info.
|
|
func UseLogger(logger btclog.Logger) {
|
|
log = logger
|
|
}
|