mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(db): implement ConfigInterface for MockDb (#1586)
This commit is contained in:
committed by
GitHub
parent
d528132932
commit
2ac1f2e29e
@ -98,6 +98,7 @@ impl StorageInterface for Store {}
|
||||
#[derive(Clone)]
|
||||
pub struct MockDb {
|
||||
addresses: Arc<Mutex<Vec<storage::Address>>>,
|
||||
configs: Arc<Mutex<Vec<storage::Config>>>,
|
||||
merchant_accounts: Arc<Mutex<Vec<storage::MerchantAccount>>>,
|
||||
merchant_connector_accounts: Arc<Mutex<Vec<storage::MerchantConnectorAccount>>>,
|
||||
payment_attempts: Arc<Mutex<Vec<storage::PaymentAttempt>>>,
|
||||
@ -121,6 +122,7 @@ impl MockDb {
|
||||
pub async fn new(redis: &crate::configs::settings::Settings) -> Self {
|
||||
Self {
|
||||
addresses: Default::default(),
|
||||
configs: Default::default(),
|
||||
merchant_accounts: Default::default(),
|
||||
merchant_connector_accounts: Default::default(),
|
||||
payment_attempts: Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user