mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix the consistency rules
This commit is contained in:
parent
8089ec668e
commit
9112b26cd1
7 changed files with 57 additions and 39 deletions
|
@ -40,7 +40,7 @@ use std::sync::{Arc, RwLock};
|
|||
use std::time::Duration;
|
||||
|
||||
use batch::Batch;
|
||||
use cluster::{Consistency, Follower, Leader};
|
||||
use cluster::{Cluster, Consistency};
|
||||
use dump::{KindDump, TaskDump, UpdateFile};
|
||||
pub use error::Error;
|
||||
use file_store::FileStore;
|
||||
|
@ -349,12 +349,6 @@ impl std::str::FromStr for ClusterMode {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum Cluster {
|
||||
Leader(Leader),
|
||||
Follower(Follower),
|
||||
}
|
||||
|
||||
impl IndexScheduler {
|
||||
fn private_clone(&self) -> IndexScheduler {
|
||||
IndexScheduler {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue