tweak the example comment

This commit is contained in:
Joe Ardent 2024-06-05 22:09:29 -07:00
parent 8a31269f45
commit 9b9cba4c47
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ impl Node for SingleNodeBroadcast {
"broadcast" => {
let val = req.body.payload.get("message").unwrap().as_i64().unwrap();
self.store.insert(val);
// maybe before replying with "broadcast_ok" maybe consider telling your neighbors
// about what you heard? maybe?
// idunno, maybe consider telling your neighbors about what you heard? maybe? maybe
// every once in a while?
runner.reply(&req, Body::from_type("broadcast_ok"));
}
"read" => {