Phase 5.1: AsyncVfsDavFs spawn_blocking wrapper complete
Some checks failed
Test / build (push) Has been cancelled
Test / test (push) Has been cancelled

- AsyncVfsDavFs wraps VfsDavFs with spawn_blocking
- All DavFileSystem methods offloaded to blocking thread pool
- Uses tokio::runtime::Runtime::block_on inside spawn_blocking
- Prevents blocking async executor during VFS operations

Tests: 293 passed, 0 failed
This commit is contained in:
Warren
2026-06-21 21:33:43 +08:00
parent c2ff6fc90e
commit 49873cb302
3 changed files with 217 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ use bytes::{Buf, Bytes};
use dav_server::davpath::DavPath;
use dav_server::fs::{
DavDirEntry, DavFile, DavFileSystem, DavMetaData, DavProp, FsError, FsFuture, FsStream,
OpenOptions,
OpenOptions, ReadDirMeta,
};
use dav_server::ls::DavLockSystem;
use http::StatusCode;