Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e committed Nov 28, 2024
1 parent ea53a86 commit 4468730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/fuels-accounts/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ impl Provider {
&self,
coin_ids: impl IntoIterator<Item = (&'a (Bech32Address, AssetId), &'a Vec<CoinTypeId>)>,
) -> Option<((Bech32Address, AssetId), CoinTypeId)> {
let mut locked_cache = self.cache.lock().await;

for (key, ids) in coin_ids {
let items = self.cache.lock().await.get_active(key);
let items = locked_cache.get_active(key);

if items.is_empty() {
continue;
Expand Down

0 comments on commit 4468730

Please sign in to comment.