mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
refactor: add default to mint memory
This commit is contained in:
@@ -16,7 +16,7 @@ use crate::nuts::{
|
||||
};
|
||||
|
||||
/// Mint Memory Database
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct MintMemoryDatabase {
|
||||
active_keysets: Arc<RwLock<HashMap<CurrencyUnit, Id>>>,
|
||||
keysets: Arc<RwLock<HashMap<Id, MintKeySetInfo>>>,
|
||||
|
||||
@@ -18,7 +18,7 @@ use crate::wallet;
|
||||
use crate::wallet::types::MintQuote;
|
||||
|
||||
/// Wallet in Memory Database
|
||||
#[derive(Default, Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct WalletMemoryDatabase {
|
||||
mints: Arc<RwLock<HashMap<MintUrl, Option<MintInfo>>>>,
|
||||
mint_keysets: Arc<RwLock<HashMap<MintUrl, HashSet<Id>>>>,
|
||||
|
||||
Reference in New Issue
Block a user