mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: fallback to PollWatcher on NetBSD (#2941)
This commit is contained in:
parent
39f50c898b
commit
ec7eb3e416
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ impl Watcher {
|
|||
};
|
||||
|
||||
let config = notify::Config::default().with_poll_interval(Duration::from_millis(500));
|
||||
if yazi_adapter::WSL.get() {
|
||||
if yazi_adapter::WSL.get() || cfg!(target_os = "netbsd") {
|
||||
tokio::spawn(Self::fan_in(in_rx, PollWatcher::new(handler, config).unwrap()));
|
||||
} else {
|
||||
tokio::spawn(Self::fan_in(in_rx, RecommendedWatcher::new(handler, config).unwrap()));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue