paymentsdb: add compile time check for the kv db implementation

This commit is contained in:
ziggie
2025-08-25 16:27:57 +02:00
parent 3d4ee8b874
commit 0320dfcc89

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) {