Explorar o código

Minor code tweak.

Jing Yang %!s(int64=3) %!d(string=hai) anos
pai
achega
9f7ce63fb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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],