Skip to content

Commit

Permalink
autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Aug 13, 2023
1 parent a1ed433 commit 5df0033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/extract_xlsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod test {
#[tokio::test]
#[ignore]
async fn test_xlsx() {
let mut file_search_index = FileSearchIndex::new(
let file_search_index = FileSearchIndex::new(
&std::env::var("INDEX_DIR_PATH").unwrap_or_else(|_| "/tmp/__tantivy_data".to_string()),
50_000_000,
)
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ async fn reindex_from_directory(

for file in path.read_dir().map_err(|e| {
tracing::error!("could not read dir {e:?}");
return ErrorResponse::from(StatusCode::INTERNAL_SERVER_ERROR);
ErrorResponse::from(StatusCode::INTERNAL_SERVER_ERROR)
})? {
let file = file.map_err(|e| {
tracing::error!("could not read file {e:?}");
return ErrorResponse::from(StatusCode::INTERNAL_SERVER_ERROR);
ErrorResponse::from(StatusCode::INTERNAL_SERVER_ERROR)
})?;
index_path(file.path(), fsi.clone()).await?;
}
Expand Down

0 comments on commit 5df0033

Please sign in to comment.