kvdb: move channeldb/kvdb to top level

This commit is contained in:
Andras Banki-Horvath committed 2021-05-07 14:18:56 +02:00
1 parent b1d9525d29
commit 14c851c8fc
143 files changed
+119 -119

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// +build !kvdb_etcd
package kvdb
import (
"fmt"
"github.com/lightningnetwork/lnd/kvdb/etcd"
)
// TestBackend is conditionally set to bdb when the kvdb_etcd build tag is
// not defined, allowing testing our database code with bolt backend.
const TestBackend = BoltBackendName
var errEtcdNotAvailable = fmt.Errorf("etcd backend not available")
// StartEtcdTestBackend is a stub returning nil, and errEtcdNotAvailable error.
func StartEtcdTestBackend(path string, clientPort, peerPort uint16) (
*etcd.Config, func(), error) {
return nil, func() {}, errEtcdNotAvailable
}