aquatic_ws: log ConnectionWriter::send_error_response errors

This commit is contained in:
Joakim Frostegård 2021-11-01 22:19:00 +01:00
parent 724932a498
commit e00dcaa5c3

View file

@ -353,8 +353,12 @@ impl ConnectionReader {
info_hash, info_hash,
}); });
self.out_message_sender if let Err(err) = self
.try_send((self.make_connection_meta(None), out_message)); .out_message_sender
.try_send((self.make_connection_meta(None), out_message))
{
::log::error!("ConnectionWriter::send_error_response failed: {:?}", err)
}
} }
fn make_connection_meta(&self, pending_scrape_id: Option<PendingScrapeId>) -> ConnectionMeta { fn make_connection_meta(&self, pending_scrape_id: Option<PendingScrapeId>) -> ConnectionMeta {