Move ledger write to its own stage (#1577)

* Move ledger write to its own stage

- Also, rename write_stage to leader_vote_stage, as write functionality
  is moved to a different stage

* Address review comments

* Fix leader rotation test failure

* address review comments
This commit is contained in:
Pankaj Garg
2018-10-23 14:42:48 -07:00
committed by GitHub
parent c77b1c9687
commit 8d9912b4e2
13 changed files with 181 additions and 113 deletions

View File

@@ -1823,7 +1823,7 @@ mod tests {
let zero = Hash::default();
let one = hash(&zero.as_ref());
writer
.write_entries(vec![Entry::new_tick(0, &zero), Entry::new_tick(0, &one)].to_vec())
.write_entries(&vec![Entry::new_tick(0, &zero), Entry::new_tick(0, &one)].to_vec())
.unwrap();
path
}