mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
reimplement Data
This commit is contained in:
parent
55e1552957
commit
0d7c4beecd
5 changed files with 44 additions and 23 deletions
|
@ -3,7 +3,6 @@ mod settings;
|
|||
pub use settings::{Settings, Facets};
|
||||
|
||||
use std::io;
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
|
@ -41,6 +40,7 @@ enum UpdateMetaProgress {
|
|||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
#[serde(tag = "type")]
|
||||
#[allow(dead_code)]
|
||||
enum UpdateStatus<M, P, N> {
|
||||
Pending { update_id: u64, meta: M },
|
||||
Progressing { update_id: u64, meta: P },
|
||||
|
@ -331,8 +331,8 @@ impl Handler<UpdateMeta, String> for UpdateHandler {
|
|||
}
|
||||
|
||||
impl UpdateQueue {
|
||||
pub fn new<P: AsRef<Path>>(
|
||||
opt: Opt,
|
||||
pub fn new(
|
||||
opt: &Opt,
|
||||
indexes: Arc<Index>,
|
||||
) -> Result<Self> {
|
||||
let (sender, _) = broadcast::channel(100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue