Skip to content

Commit

Permalink
revert update to error handling server.rs, as #21 handles it
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Apr 5, 2020
1 parent 7700bac commit 0de6a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ pub async fn run(listener: TcpListener, shutdown: impl Future) -> crate::Result<
tokio::select! {
res = server.run() => {
if let Err(err) = res {
// TODO: gracefully handle this error
error!(cause = %err, "failed to accept");
return Err(err.into());
}
}
_ = shutdown => {
Expand Down

0 comments on commit 0de6a41

Please sign in to comment.