Skip to content
Snippets Groups Projects
Commit 9fba1c89 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

chore: elaborate on the comment in Node::campaign

parent ec8605f3
No related branches found
No related tags found
1 merge request!183Refactor/remove mailbox
......@@ -197,8 +197,10 @@ impl Node {
pub fn campaign(&self) -> Result<(), Error> {
self.raw_operation(|raw_node| raw_node.campaign().map_err(Into::into))?;
// even though we don't expect a response, we still should let the
// main_loop do an iteration
// Even though we don't expect a response, we still should let the
// main_loop do an iteration. Without rescheduling, the Ready state
// wouldn't be processed, the Status wouldn't be updated, and some
// assertions may fail (e.g. in `postjoin()` in `main.rs`).
fiber::reschedule();
Ok(())
}
......
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