4 Revize bd32531d58 ... b9a9591bec

Autor SHA1 Zpráva Datum
  Jing Yang b9a9591bec Optimize serialization of Vec<u8> and boost throughput to 150%. před 3 roky
  Jing Yang 44774c320f Drop the Arc requirement of Persister. před 3 roky
  Jing Yang bd32531d58 Optimize serialization of Vec<u8> and boost throughput to 150%. před 3 roky
  Jing Yang 26d05814ba Drop the Arc requirement of Persister. před 3 roky
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      test_configs/src/rpcs.rs

+ 1 - 3
test_configs/src/rpcs.rs

@@ -216,8 +216,6 @@ pub fn register_kv_server<
 
 #[cfg(test)]
 mod tests {
-    use std::sync::Arc;
-
     use bytes::Bytes;
 
     use ruaft::utils::integration_test::{
@@ -258,7 +256,7 @@ mod tests {
             let raft = Raft::new(
                 vec![RpcClient(client)],
                 0,
-                Arc::new(DoNothingPersister),
+                DoNothingPersister,
                 |_: ApplyCommandMessage<i32>| {},
                 None,
                 crate::utils::NO_SNAPSHOT,