We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b947df8 commit cb4f404Copy full SHA for cb4f404
crates/providers/src/l1/mod.rs
@@ -99,8 +99,8 @@ impl<P: L1MessageProvider + Sync> L1Provider for OnlineL1Provider<P> {
99
hash: B256,
100
) -> Result<Option<Arc<Blob>>, L1ProviderError> {
101
// check if the requested blob is in the cache.
102
- let cache = self.cache.lock().await;
103
- if let Some((_, blob)) = cache.iter().find(|c| c.0 == &hash) {
+ let mut cache = self.cache.lock().await;
+ if let Some(blob) = cache.get(&hash) {
104
return Ok(Some(blob.clone()));
105
}
106
// avoid holding the lock over the blob request.
0 commit comments