You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
581 B
22 lines
581 B
// +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 |
|
}
|
|
|