message routing

This commit is contained in:
Emma Tebibyte 2023-06-18 16:23:52 -06:00
parent a86e1d7af7
commit 59a26742ce
Signed by untrusted user: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -83,15 +83,15 @@ fn handle_client(
.clone()
.lock()
.unwrap()
.drain() {
.iter() {
if id == client { continue }
if id == &client { continue }
if let Err(err) = stream.write_all(
format!(
"{}BODY {}\n",
write_from,
message.body.clone().unwrap()
message.body.clone().unwrap(),
).as_bytes()
) {
eprintln!("{}: {}", id, err);