Use block_in_place for loading metadata

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-05 00:11:59 +10:00
parent 6716d75607
commit 4dae214af3
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -333,7 +333,7 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> {
// Load metadata
let metadata = if !custom_install_path {
debug!("Reading binstall/crates-v1.json");
Some(metafiles::binstall_v1::Records::load()?)
Some(block_in_place(metafiles::binstall_v1::Records::load)?)
} else {
None
};