paymentsdb: add compile time check for the kv db implementation
This commit is contained in:
1 file changed
+3
@@ -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