From c441f5e857feedb3599a179ac1c90d29fcbd092e Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sat, 5 Jan 2019 11:02:46 +0100 Subject: [PATCH] Lower serve latency Closes #554 --- CHANGELOG.md | 2 ++ src/cmd/serve.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65342379..91bc573b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## 0.6.0 (unreleased) - Add support for content in multiple languages +- Lower latency on serve before rebuilding from 2 to 1 second +- Allow processing PNG and produced images are less blurry ## 0.5.1 (2018-12-14) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 1f22eea2..7672aac2 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -176,7 +176,7 @@ pub fn serve( let mut watching_static = false; let mut watching_templates = false; let (tx, rx) = channel(); - let mut watcher = watcher(tx, Duration::from_secs(2)).unwrap(); + let mut watcher = watcher(tx, Duration::from_secs(1)).unwrap(); watcher .watch("content/", RecursiveMode::Recursive) .chain_err(|| "Can't watch the `content` folder. Does it exist?")?;