mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-11 14:48:14 +01:00
paymentsdb: add compile time check for the kv db implementation
This commit is contained in:
@@ -133,6 +133,9 @@ type KVStore struct {
|
|||||||
keepFailedPaymentAttempts bool
|
keepFailedPaymentAttempts bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A compile-time constraint to ensure KVStore implements DB.
|
||||||
|
var _ DB = (*KVStore)(nil)
|
||||||
|
|
||||||
// NewKVStore creates a new KVStore for payments.
|
// NewKVStore creates a new KVStore for payments.
|
||||||
func NewKVStore(db kvdb.Backend,
|
func NewKVStore(db kvdb.Backend,
|
||||||
options ...OptionModifier) (*KVStore, error) {
|
options ...OptionModifier) (*KVStore, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user