mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-18 03:21:45 +02: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
|
||||
}
|
||||
|
||||
// A compile-time constraint to ensure KVStore implements DB.
|
||||
var _ DB = (*KVStore)(nil)
|
||||
|
||||
// NewKVStore creates a new KVStore for payments.
|
||||
func NewKVStore(db kvdb.Backend,
|
||||
options ...OptionModifier) (*KVStore, error) {
|
||||
|
Reference in New Issue
Block a user