tweak the example comment

This commit is contained in:
Joe Ardent 2024-06-05 22:09:29 -07:00
parent 8a31269f45
commit 9b9cba4c47

View file

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