Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 21, 2026

Description

This PR fixes a bug where the file watcher's poll interval was incorrectly set to the debounce duration.

Issue

Previously, setting a high debounce value (e.g., 5000ms) would cause the watcher to poll only every 5 seconds, effectively slowing down change detection instead of just batching events.

Fix

The notify watcher is now initialized with the default configuration, allowing it to pick an appropriate poll interval (or use OS-native events). The debouncing logic remains separate and handles the batching of events as intended.

Changes

  • Removed .with_poll_interval(Duration::from_millis(self.debounce_ms)) from watcher initialization in src/watcher.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants