mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Add back a bit of debounce
This commit is contained in:
parent
2cb584e824
commit
04322d7808
1 changed files with 1 additions and 3 deletions
|
|
@ -133,9 +133,7 @@ impl Watcher {
|
|||
watched: Arc<RwLock<IndexMap<Url, Option<Url>>>>,
|
||||
) {
|
||||
// TODO: revert this once a new notification is implemented
|
||||
// let rx = UnboundedReceiverStream::new(rx).chunks_timeout(100,
|
||||
// Duration::from_millis(200));
|
||||
let rx = UnboundedReceiverStream::new(rx).chunks_timeout(1, Duration::ZERO);
|
||||
let rx = UnboundedReceiverStream::new(rx).chunks_timeout(10, Duration::from_millis(20));
|
||||
pin!(rx);
|
||||
|
||||
while let Some(urls) = rx.next().await {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue