refactor: minor changes

This commit is contained in:
2025-03-12 22:02:58 -04:00
parent 7b76108b41
commit ac5533834d
3 changed files with 3 additions and 4 deletions

View File

@@ -196,9 +196,8 @@ pub async fn handle_event(client: Client, event: Event, state: State) -> Result<
return Ok(());
};
let listener = TcpListener::bind(address).await.map_err(|error| {
let listener = TcpListener::bind(address).await.inspect_err(|error| {
error!("failed to listen on {address}: {error:?}");
error
})?;
debug!("http server listening on {address}");