Skip to content
Snippets Groups Projects
Commit ad6f79ad authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

fix: ignore raft messages with wrong destination

parent c991e1db
No related branches found
No related tags found
1 merge request!158Refactor join loop (v2)
......@@ -737,6 +737,9 @@ fn raft_main_loop(
Err(e) => notify.notify_err(e),
},
NormalRequest::Step(msg) => {
if msg.to != raw_node.raft.id {
continue;
}
if let Err(e) = raw_node.step(msg) {
tlog!(Error, "{e}");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment