mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 00:01:03 +00:00
fix: temporarily cancel the delay prepared for batch updates
This commit is contained in:
parent
5d9b5472ba
commit
d56c8fd52a
1 changed files with 4 additions and 1 deletions
|
|
@ -131,7 +131,10 @@ impl Watcher {
|
|||
}
|
||||
|
||||
async fn changed(rx: UnboundedReceiver<Url>, watched: Arc<RwLock<IndexMap<Url, Option<Url>>>>) {
|
||||
let rx = UnboundedReceiverStream::new(rx).chunks_timeout(100, Duration::from_millis(200));
|
||||
// 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);
|
||||
pin!(rx);
|
||||
|
||||
while let Some(urls) = rx.next().await {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue