Browse Source

fix: PR comments: remove debug log, clean up code comment

vnprc 1 month ago
parent
commit
798e87a015

+ 1 - 1
crates/cdk-common/src/database/wallet.rs

@@ -96,7 +96,7 @@ pub trait Database: Debug {
         state: Option<Vec<State>>,
         state: Option<Vec<State>>,
         spending_conditions: Option<Vec<SpendingConditions>>,
         spending_conditions: Option<Vec<SpendingConditions>>,
     ) -> Result<Vec<ProofInfo>, Self::Err>;
     ) -> Result<Vec<ProofInfo>, Self::Err>;
-    /// Get balance efficiently using SQL aggregation
+    /// Get balance
     async fn get_balance(
     async fn get_balance(
         &self,
         &self,
         mint_url: Option<MintUrl>,
         mint_url: Option<MintUrl>,

+ 0 - 5
crates/cdk-sql-common/src/wallet/mod.rs

@@ -897,11 +897,6 @@ ON CONFLICT(id) DO UPDATE SET
             .unwrap_or(0);
             .unwrap_or(0);
 
 
         let elapsed = start_time.elapsed();
         let elapsed = start_time.elapsed();
-        tracing::debug!(
-            "Balance query completed in {:.2}ms: {}",
-            elapsed.as_secs_f64() * 1000.0,
-            balance
-        );
         Ok(balance)
         Ok(balance)
     }
     }