Enable the clear documents optimization that wasn't working due to a bug

This commit is contained in:
Clément Renault 2020-10-29 13:52:00 +01:00
parent 1228c2948d
commit 855a251489
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 17 additions and 8 deletions

View file

@ -7,6 +7,7 @@ use std::str::FromStr;
use std::sync::Arc;
use std::time::Instant;
use anyhow::anyhow;
use askama_warp::Template;
use flate2::read::GzDecoder;
use futures::stream;
@ -258,7 +259,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
}
},
UpdateMeta::DocumentsAdditionFromPath { path: _ } => {
todo!()
Err(anyhow!("indexing from a file is not supported yet"))
}
};