aboutsummaryrefslogtreecommitdiff
path: root/src/http.rs
diff options
context:
space:
mode:
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.