forked from emma/liminality
message routing
This commit is contained in:
parent
a86e1d7af7
commit
59a26742ce
@ -83,15 +83,15 @@ fn handle_client(
|
|||||||
.clone()
|
.clone()
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.drain() {
|
.iter() {
|
||||||
|
|
||||||
if id == client { continue }
|
if id == &client { continue }
|
||||||
|
|
||||||
if let Err(err) = stream.write_all(
|
if let Err(err) = stream.write_all(
|
||||||
format!(
|
format!(
|
||||||
"{}BODY {}\n",
|
"{}BODY {}\n",
|
||||||
write_from,
|
write_from,
|
||||||
message.body.clone().unwrap()
|
message.body.clone().unwrap(),
|
||||||
).as_bytes()
|
).as_bytes()
|
||||||
) {
|
) {
|
||||||
eprintln!("{}: {}", id, err);
|
eprintln!("{}: {}", id, err);
|
||||||
|
Loading…
Reference in New Issue
Block a user