aboutsummaryrefslogtreecommitdiff
path: root/src/http.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 17:50:40 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 17:50:40 +0100
commit3bdb417bfb87d7ef3381be2d56346a7995c54dde (patch)
treea1c1f503f9010c6af37e2098e9125b39219274da /src/http.rs
parent0e6e60d35a20d3c5e691f01e7f9372a390c18dea (diff)
downloadtricot-3bdb417bfb87d7ef3381be2d56346a7995c54dde.tar.gz
tricot-3bdb417bfb87d7ef3381be2d56346a7995c54dde.zip
Exit more agressively on certain errors
Diffstat (limited to 'src/http.rs')
-rw-r--r--src/http.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/http.rs b/src/http.rs
index 2b26e6d..05d7440 100644
--- a/src/http.rs
+++ b/src/http.rs
@@ -12,10 +12,7 @@ use crate::consul::Consul;
const CHALLENGE_PREFIX: &str = "/.well-known/acme-challenge/";
-pub async fn serve_http(
- bind_addr: SocketAddr,
- consul: Consul,
-) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
+pub async fn serve_http(bind_addr: SocketAddr, consul: Consul) -> Result<()> {
let consul = Arc::new(consul);
// For every connection, we must make a `Service` to handle all
// incoming HTTP requests on said connection.