Skip to content

Commit

Permalink
address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hicqu committed Jul 18, 2019
1 parent 22a016c commit bd43634
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,6 @@ impl<T: Storage> Raft<T> {
"tag" => &self.tag,
);
let mut to_send = Message::default();
to_send.to = m.from;
to_send.set_msg_type(MessageType::MsgAppendResponse);
to_send.to = m.from;
to_send.index = self.raft_log.committed;
Expand Down Expand Up @@ -2165,7 +2164,6 @@ impl<T: Storage> Raft<T> {
return;
}
let mut to_send = Message::default();
to_send.to = m.from;
to_send.set_msg_type(MessageType::MsgHeartbeatResponse);
to_send.to = m.from;
to_send.context = m.take_context();
Expand Down

0 comments on commit bd43634

Please sign in to comment.