Ver Fonte

Derive clone, debug and default for snapshot.

Jing Yang há 4 anos atrás
pai
commit
afcba31d87
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/snapshot.rs

+ 1 - 0
src/snapshot.rs

@@ -2,6 +2,7 @@ use crate::{Index, Raft};
 use crossbeam_utils::sync::{Parker, Unparker};
 use std::sync::atomic::Ordering;
 
+#[derive(Clone, Debug, Default)]
 pub struct Snapshot {
     pub last_included_index: Index,
     pub data: Vec<u8>,