typo fixes

This commit is contained in:
Edward Shen 2019-12-31 22:44:16 -05:00
parent cc7ac3e617
commit b8be3d8d53
Signed by: edward
GPG key ID: F350507060ED6C90
2 changed files with 6 additions and 2 deletions

View file

@ -1,11 +1,15 @@
{ {
"cSpell.words": [ "cSpell.words": [
"Deserialization",
"Hotwatch", "Hotwatch",
"Serializer",
"actix", "actix",
"bunbun", "bunbun",
"bunbunsearch", "bunbunsearch",
"canonicalize",
"itertools", "itertools",
"opensearchdescription" "opensearchdescription",
"tempfile"
], ],
"python.pythonPath": "/usr/bin/python3" "python.pythonPath": "/usr/bin/python3"
} }

View file

@ -150,7 +150,7 @@ fn start_watch(
) -> Result<Hotwatch, BunBunError> { ) -> Result<Hotwatch, BunBunError> {
let mut watch = Hotwatch::new_with_custom_delay(Duration::from_millis(500))?; let mut watch = Hotwatch::new_with_custom_delay(Duration::from_millis(500))?;
// TODO: keep retry watching in separate thread // TODO: keep retry watching in separate thread
// Closures need their own copy of variables for proper lifecycle management // Closures need their own copy of variables for proper life cycle management
let config_file_path_clone = config_file_path.clone(); let config_file_path_clone = config_file_path.clone();
let watch_result = watch.watch(&config_file_path, move |e: Event| { let watch_result = watch.watch(&config_file_path, move |e: Event| {
if let Event::Write(_) = e { if let Event::Write(_) = e {