fix the consistency rules

This commit is contained in:
Tamo 2023-03-22 14:24:53 +01:00
parent 8089ec668e
commit 9112b26cd1
7 changed files with 57 additions and 39 deletions

View file

@ -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 {