Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Apr 19, 2019
1 parent 3159f53 commit c24275d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ impl<T: Storage> Raft<T> {
};
self.read_states.push(rs);
} else {
let mut to_send = Message::new();
let mut to_send = Message::default();
to_send.set_to(m.get_from());
to_send.set_msg_type(MessageType::MsgReadIndexResp);
to_send.set_index(self.raft_log.committed);
Expand Down
8 changes: 4 additions & 4 deletions tests/integration_cases/test_raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2215,10 +2215,10 @@ fn test_read_only_with_learner() {
assert_eq!(nt.peers[&2].state, StateRole::Follower);

let mut tests = vec![
(1, 10, 11, "ctx1"),
(2, 10, 21, "ctx2"),
(1, 10, 31, "ctx3"),
(2, 10, 41, "ctx4"),
(1, 10, 12, "ctx1"),
(2, 10, 22, "ctx2"),
(1, 10, 32, "ctx3"),
(2, 10, 42, "ctx4"),
];

for (i, (id, proposals, wri, wctx)) in tests.drain(..).enumerate() {
Expand Down

0 comments on commit c24275d

Please sign in to comment.