Просмотр исходного кода

Derive clone, debug and default for snapshot.

Jing Yang 4 лет назад
Родитель
Сommit
afcba31d87
1 измененных файлов с 1 добавлено и 0 удалено
  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>,