From f215df891c2541abf625d53f7d69fac7b97bfc56 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Sun, 22 Apr 2018 16:41:45 -0700 Subject: [PATCH] Decrease debounce timeout, which will make polling much snappier --- CHANGES.md | 1 + server/src/vfs/vfs_watcher.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a00a25c1..4ecf2505 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,7 @@ # Rojo Change Log ## Current Master +* Fixed server to notice file changes *much* more quickly. (200ms vs 1000ms) * Rojo now throws an error if no project file is found. ([#63](https://github.com/LPGhatguy/rojo/issues/63)) * Fixed multiple sync operations occuring at the same time. ([#61](https://github.com/LPGhatguy/rojo/issues/61)) * Partitions targeting files directly now work as expected. ([#57](https://github.com/LPGhatguy/rojo/issues/57)) diff --git a/server/src/vfs/vfs_watcher.rs b/server/src/vfs/vfs_watcher.rs index 9ace5262..0e7ac27d 100644 --- a/server/src/vfs/vfs_watcher.rs +++ b/server/src/vfs/vfs_watcher.rs @@ -77,7 +77,7 @@ impl VfsWatcher { for (ref partition_name, ref root_path) in vfs.get_partitions() { let (tx, rx) = mpsc::channel(); - let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_secs(1)) + let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_millis(200)) .expect("Unable to create watcher! This is a bug in Rojo."); match watcher.watch(&root_path, RecursiveMode::Recursive) {