Lower serve latency

Closes #554
This commit is contained in:
Vincent Prouillet 2019-01-05 11:02:46 +01:00
parent 2e126b3a08
commit c441f5e857
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -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?")?;