fix: temporarily cancel the delay prepared for batch updates

This commit is contained in:
sxyazi 2023-10-10 18:14:28 +08:00
parent 5d9b5472ba
commit d56c8fd52a
No known key found for this signature in database

View file

@ -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 {