소스 검색

Minor code tweak.

Jing Yang 3 년 전
부모
커밋
9f7ce63fb0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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],