paymentsdb: add compile time check for the kv db implementation

This commit is contained in:
ziggie committed 2025-09-05 09:52:40 +02:00
1 parent 3d4ee8b874
commit 0320dfcc89
1 file changed
+3
+3
View File
@@ -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) {