Skip to content

Commit 4c31073

Browse files
committed
fix: remove extra block in async zarr
1 parent 4556876 commit 4c31073

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/storage/zarr/async_impl.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,7 @@ fn store_zarr_chunk_sync(
123123
chain_chunk_index: u64,
124124
) -> Result<()> {
125125
let array = array.clone();
126-
handle.block_on(async move {
127-
tokio::runtime::Handle::current().block_on(store_zarr_chunk_async(
128-
array,
129-
data,
130-
chain_chunk_index,
131-
))
132-
})
126+
handle.block_on(async move { store_zarr_chunk_async(array, data, chain_chunk_index).await })
133127
}
134128

135129
/// Store coordinates in zarr arrays

0 commit comments

Comments
 (0)