chainregistry+lnd: remove unused cleanUp variable

This commit is contained in:
Valentine Wallace
2019-04-10 17:32:41 -07:00
parent c6b653457b
commit 1179895d20
2 changed files with 30 additions and 45 deletions

5
lnd.go
View File

@@ -278,7 +278,7 @@ func lndMain() error {
// With the information parsed from the configuration, create valid
// instances of the pertinent interfaces required to operate the
// Lightning Network Daemon.
activeChainControl, chainCleanUp, err := newChainControlFromConfig(
activeChainControl, err := newChainControlFromConfig(
cfg, chanDB, privateWalletPw, publicWalletPw,
walletInitParams.Birthday, walletInitParams.RecoveryWindow,
walletInitParams.Wallet, neutrinoCS,
@@ -287,9 +287,6 @@ func lndMain() error {
fmt.Printf("unable to create chain control: %v\n", err)
return err
}
if chainCleanUp != nil {
defer chainCleanUp()
}
// Finally before we start the server, we'll register the "holy
// trinity" of interface for our current "home chain" with the active