Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Apr 28, 2024
1 parent 2d65263 commit d929fb8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/curp/src/server/conflict/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fn sp_should_returns_all_entries() {
for e in entries.clone() {
sp.insert(e);
}
/// conflict entries should not be inserted
// conflict entries should not be inserted
for e in entries.clone() {
assert!(sp.insert(e).is_some());
}
Expand Down
4 changes: 2 additions & 2 deletions crates/curp/src/server/raw_curp/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ impl RawCurp<TestCommand, TestRoleChange> {
Reverse(Instant::now().add(Duration::from_nanos(u64::MAX))),
);

let sp = Arc::new(Mutex::new(SpecPool::new(vec![Box::new(
let sp = Arc::new(Mutex::new(SpeculativePool::new(vec![Box::new(
TestSpecPool::default(),
)])));
let ucp = Arc::new(Mutex::new(UncomPool::new(vec![Box::new(
let ucp = Arc::new(Mutex::new(UncommittedPool::new(vec![Box::new(
TestUncomPool::default(),
)])));

Expand Down
8 changes: 4 additions & 4 deletions crates/xline/src/server/xline_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ use super::{
};
use crate::{
conflict::{
spec_pool::{KvSpecPool, LeaseSpecPool, XorSpecPool},
uncommitted_pool::{KvUncomPool, LeaseUncomPool, XorUncomPool},
spec_pool::{ExclusiveSpecPool, KvSpecPool, LeaseSpecPool},
uncommitted_pool::{ExclusiveUncomPool, KvUncomPool, LeaseUncomPool},
},
header_gen::HeaderGenerator,
id_gen::IdGenerator,
Expand Down Expand Up @@ -701,10 +701,10 @@ impl XlineServer {
fn init_conflict_pools() -> (Vec<SpObject<Command>>, Vec<UcpObject<Command>>) {
let kv_sp = Box::<KvSpecPool>::default();
let lease_sp = Box::<LeaseSpecPool>::default();
let xor_sp = Box::<XorSpecPool>::default();
let xor_sp = Box::<ExclusiveSpecPool>::default();
let kv_ucp = Box::<KvUncomPool>::default();
let lease_ucp = Box::<LeaseUncomPool>::default();
let xor_ucp = Box::<XorUncomPool>::default();
let xor_ucp = Box::<ExclusiveUncomPool>::default();
(
vec![kv_sp, lease_sp, xor_sp],
vec![kv_ucp, lease_ucp, xor_ucp],
Expand Down

0 comments on commit d929fb8

Please sign in to comment.