diff --git a/payments/db/kv_store.go b/payments/db/kv_store.go index 67b4a920b..5eb94dad2 100644 --- a/payments/db/kv_store.go +++ b/payments/db/kv_store.go @@ -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) {