Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Sep 23, 2024
1 parent bcfe671 commit 23613ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions icechunk/src/storage/object_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,11 @@ impl ObjectStoreVirtualChunkResolver {
path: &ObjectPath,
options: GetOptions,
) -> StorageResult<Bytes> {
let stores = self.stores.read().await;
#[allow(clippy::expect_used)]
let store = stores.get(cache_key).expect("this should not fail");
let store = {
let stores = self.stores.read().await;
#[allow(clippy::expect_used)]
stores.get(cache_key).expect("this should not fail")
};
Ok(store.get_opts(path, options).await?.bytes().await?)
}
}
Expand Down

0 comments on commit 23613ce

Please sign in to comment.