refactor: add default to mint memory

This commit is contained in:
thesimplekid
2024-08-17 16:02:17 +02:00
parent bcb4a5927d
commit 39a4d4f5d2
2 changed files with 2 additions and 2 deletions

View File

@@ -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>>>,

View File

@@ -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>>>>,