rename the update-file-store to file-store since it can store any kind of file

This commit is contained in:
Tamo 2022-09-13 19:32:31 +02:00 committed by Clément Renault
parent 5dcd67c597
commit 5abb79f149
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 17 additions and 17 deletions

View file

@ -13,7 +13,7 @@ use uuid::Uuid;
use super::error::{IndexError, Result};
use super::index::{Index, IndexMeta};
use file_store::UpdateFileStore;
use file_store::FileStore;
fn serialize_with_wildcard<S>(
field: &Setting<Vec<String>>,
@ -297,7 +297,7 @@ impl Index {
&self,
method: IndexDocumentsMethod,
primary_key: Option<String>,
file_store: UpdateFileStore,
file_store: FileStore,
contents: impl IntoIterator<Item = Uuid>,
) -> Result<Vec<Result<DocumentAdditionResult>>> {
trace!("performing document addition");

View file

@ -8,7 +8,7 @@ mod utils;
use batch::Batch;
pub use error::Error;
use file_store::UpdateFileStore;
use file_store::FileStore;
use index::Index;
pub use task::Task;
use task::{Kind, KindWithContent, Status};
@ -57,7 +57,7 @@ pub struct IndexScheduler {
/// The list of tasks currently processing.
processing_tasks: Arc<RwLock<RoaringBitmap>>,
file_store: UpdateFileStore,
file_store: FileStore,
/// The LMDB environment which the DBs are associated with.
env: Env,