fix(ecstore): avoid blocking fs in async paths (#3586)

This commit is contained in:
houseme
2026-06-19 01:44:17 +08:00
committed by GitHub
parent a860f2b40c
commit 9b1272529a
2 changed files with 123 additions and 111 deletions
+1 -1
View File
@@ -890,7 +890,7 @@ impl LocalDisk {
#[tracing::instrument(level = "debug", skip(self))]
async fn check_format_json(&self) -> Result<Metadata> {
let md = std::fs::metadata(&self.format_path).map_err(to_unformatted_disk_error)?;
let md = fs::metadata(&self.format_path).await.map_err(to_unformatted_disk_error)?;
Ok(md)
}
async fn make_meta_volumes(&self) -> Result<()> {