tweak the example comment
This commit is contained in:
parent
8a31269f45
commit
9b9cba4c47
1 changed files with 2 additions and 2 deletions
|
@ -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" => {
|
||||||
|
|
Loading…
Reference in a new issue