Skip to content

Commit

Permalink
feat: Proper blocking balance fetching (#2077)
Browse files Browse the repository at this point in the history
* feat: Proper blocking balance fetching

* fmt

* fix: Make `ledger_rw` private

Co-authored-by: Thibault Martinez <[email protected]>

---------

Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
marc2332 and thibault-martinez authored Feb 28, 2024
1 parent 31bcdf4 commit 8129e07
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 268 deletions.
5 changes: 5 additions & 0 deletions sdk/src/wallet/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ where
self.ledger.write().await
}

/// Get the wallet's ledger RwLock.
pub(crate) fn ledger_rw(&self) -> &Arc<tokio::sync::RwLock<WalletLedger>> {
&self.ledger
}

#[cfg(feature = "storage")]
pub(crate) fn storage_manager(&self) -> &StorageManager {
&self.storage_manager
Expand Down
Loading

0 comments on commit 8129e07

Please sign in to comment.