Skip to content

Commit

Permalink
fix: temporarily cancel the delay prepared for batch updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 10, 2023
1 parent 5d9b547 commit d56c8fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/manager/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d56c8fd

Please sign in to comment.