Cesar Rodas 1 주 전
부모
커밋
071f2eeedc
2개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 2 2
      crates/cdk/src/wallet/mint_metadata_cache.rs
  2. 8 8
      crates/cdk/src/wallet/mod.rs

+ 2 - 2
crates/cdk/src/wallet/mint_metadata_cache.rs

@@ -151,7 +151,7 @@ impl Wallet {
         *guarded_ttl = ttl;
     }
 
-    /// Get information about metada cache info
+    /// Get information about metadata cache info
     pub fn get_metadata_cache_info(&self) -> FreshnessStatus {
         self.metadata_cache.metadata.load().status.clone()
     }
@@ -159,7 +159,7 @@ impl Wallet {
 
 #[cfg(feature = "auth")]
 impl AuthWallet {
-    /// Get information about metada cache info
+    /// Get information about metadata cache info
     pub fn get_metadata_cache_info(&self) -> FreshnessStatus {
         self.metadata_cache.metadata.load().auth_status.clone()
     }

+ 8 - 8
crates/cdk/src/wallet/mod.rs

@@ -79,15 +79,15 @@ pub use types::{MeltQuote, MintQuote, SendKind};
 
 use crate::nuts::nut00::ProofsMethods;
 
-/// Clonable mutex
+/// Cloneable mutex
 ///
-/// Each instance is indepent from each other, that's why an Arc is not an option
+/// Each instance is independent from each other, that's why an Arc is not an option
 #[derive(Debug)]
-pub struct ClonableMutex<T>(Mutex<T>)
+pub struct CloneableMutex<T>(Mutex<T>)
 where
     T: Clone + Debug;
 
-impl<T> From<T> for ClonableMutex<T>
+impl<T> From<T> for CloneableMutex<T>
 where
     T: Clone + Debug,
 {
@@ -96,7 +96,7 @@ where
     }
 }
 
-impl<T> ClonableMutex<T>
+impl<T> CloneableMutex<T>
 where
     T: Clone + Debug,
 {
@@ -106,7 +106,7 @@ where
     }
 }
 
-impl<T> Clone for ClonableMutex<T>
+impl<T> Clone for CloneableMutex<T>
 where
     T: Clone + Debug,
 {
@@ -115,7 +115,7 @@ where
     }
 }
 
-impl<T> Deref for ClonableMutex<T>
+impl<T> Deref for CloneableMutex<T>
 where
     T: Clone + Debug,
 {
@@ -143,7 +143,7 @@ pub struct Wallet {
     pub metadata_cache: Arc<MintMetadataCache>,
     /// The targeted amount of proofs to have at each size
     pub target_proof_count: usize,
-    metadata_cache_ttl: ClonableMutex<Option<Duration>>,
+    metadata_cache_ttl: CloneableMutex<Option<Duration>>,
     #[cfg(feature = "auth")]
     auth_wallet: Arc<RwLock<Option<AuthWallet>>>,
     seed: [u8; 64],