From 99eef032c66a069d9db4651cdd4653cc43602e66 Mon Sep 17 00:00:00 2001 From: Henry Guo Date: Fri, 10 Jul 2026 18:28:29 +0800 Subject: [PATCH] fix(ecstore): restore Windows async read trait import (#4652) * fix(ecstore): restore Windows async read trait import * fix(ecstore): gate async read import to non-Unix --- crates/ecstore/src/disk/local.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ecstore/src/disk/local.rs b/crates/ecstore/src/disk/local.rs index f262121c3..1e70a5816 100644 --- a/crates/ecstore/src/disk/local.rs +++ b/crates/ecstore/src/disk/local.rs @@ -62,6 +62,8 @@ use std::{ }; use time::OffsetDateTime; use tokio::fs::{self, File}; +#[cfg(not(unix))] +use tokio::io::AsyncReadExt; use tokio::io::{AsyncRead, AsyncSeekExt, AsyncWrite, AsyncWriteExt, ErrorKind, ReadBuf}; use tokio::sync::{Notify, RwLock}; use tokio::time::{Instant, Sleep, interval_at, timeout};