mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-10 03:30:59 +00:00
The cross-process refresh lock added a third copy of the open-file, try-lock, then block-on-contention sequence. Collapse all three into one `open_locked_file` helper parameterized by `LockMode`, which removes `open_lock_file` and `lock_error`. Lock calls are now qualified as `FileExt` calls throughout, since `std::fs::File` has inherent locking methods with different return types that take precedence over trait methods. Also give `acquire_refresh_lock` one signature on all platforms by defining `RefreshLockGuard` for non-Unix targets too, instead of returning `Result<(), _>` there and `Result<RefreshLockGuard, _>` on Unix. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||