Sfoglia il codice sorgente

Remove two access level annotations that are no longer needed.

Jing Yang 4 anni fa
parent
commit
abb309cff1
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -108,9 +108,9 @@ pub struct AppendEntriesReply {
 
 #[derive(Clone, Debug, Serialize, Deserialize)]
 pub struct InstallSnapshotArgs {
-    pub(crate) term: Term,
+    term: Term,
     leader_id: Peer,
-    pub(crate) last_included_index: Index,
+    last_included_index: Index,
     last_included_term: Term,
     // TODO(ditsing): Serde cannot handle Vec<u8> as efficient as expected.
     data: Vec<u8>,