ws: don't yield unnecessarily in run_in_message_loop, improve logging

This commit is contained in:
Joakim Frostegård 2024-01-05 23:13:31 +01:00
parent d48deeff8c
commit 579fcb2140
2 changed files with 7 additions and 9 deletions

View file

@ -287,10 +287,14 @@ async fn receive_out_messages(
match reference.out_message_sender.try_send((meta, out_message)) {
Ok(()) => {}
Err(GlommioError::Closed(_)) => {}
Err(GlommioError::WouldBlock(_)) => {}
Err(GlommioError::WouldBlock(_)) => {
::log::debug!(
"couldn't send OutMessage over local channel to Connection, channel full"
);
}
Err(err) => {
::log::debug!(
"Couldn't send out_message from shared channel to local receiver: {:?}",
"couldn't send OutMessage over local channel to Connection: {:?}",
err
);
}