Skip to content

Commit bd43634

Browse files
committed
address comments.
1 parent 22a016c commit bd43634

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/raft.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,6 @@ impl<T: Storage> Raft<T> {
21162116
"tag" => &self.tag,
21172117
);
21182118
let mut to_send = Message::default();
2119-
to_send.to = m.from;
21202119
to_send.set_msg_type(MessageType::MsgAppendResponse);
21212120
to_send.to = m.from;
21222121
to_send.index = self.raft_log.committed;
@@ -2165,7 +2164,6 @@ impl<T: Storage> Raft<T> {
21652164
return;
21662165
}
21672166
let mut to_send = Message::default();
2168-
to_send.to = m.from;
21692167
to_send.set_msg_type(MessageType::MsgHeartbeatResponse);
21702168
to_send.to = m.from;
21712169
to_send.context = m.take_context();

0 commit comments

Comments
 (0)