Commit 51df82b5 authored by Flemming Stäbler's avatar Flemming Stäbler
Browse files

block_in_place in netcdf source

parent 730ec4bf
......@@ -339,7 +339,9 @@ impl NetCDFSource {
.collect();
let mut array: Vec<f32> = vec![0.0; latb.count * lonb.count];
var.values_strided_to(&mut array, Some(&indices), Some(&counts), &strides)?;
tileserver_model::tokio::task::block_in_place(|| {
var.values_strided_to(&mut array, Some(&indices), Some(&counts), &strides)
})?;
let mut latrank = 0;
let mut lonrank = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment