Browse Source

Minor code tweak.

Jing Yang 3 năm trước cách đây
mục cha
commit
9f7ce63fb0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/raft_state.rs

+ 1 - 1
src/raft_state.rs

@@ -32,7 +32,7 @@ impl<Command> RaftState<Command> {
         RaftState {
             current_term: Term(0),
             voted_for: None,
-            log: crate::log_array::LogArray::create(),
+            log: LogArray::create(),
             commit_index: 0,
             last_applied: 0,
             next_index: vec![1; peer_size],