aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-07 14:33:07 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-07 14:34:40 +0100
commitfe48d60d2b63a9914297558bd5dbccae8d96c947 (patch)
tree6666ae0d756a21b0a6b055da42d5bf473dbedd95 /src/garage
parent22332e6c3536159656e773a85d656352882ffc32 (diff)
downloadgarage-fe48d60d2b63a9914297558bd5dbccae8d96c947.tar.gz
garage-fe48d60d2b63a9914297558bd5dbccae8d96c947.zip
[dep-upgrade-202402] refactor http listener code
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/server.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs
index ac76a44d..de8ac9e2 100644
--- a/src/garage/server.rs
+++ b/src/garage/server.rs
@@ -113,12 +113,11 @@ pub async fn run_server(config_file: PathBuf, secrets: Secrets) -> Result<(), Er
if let Some(web_config) = &config.s3_web {
info!("Initializing web server...");
+ let web_server = WebServer::new(garage.clone(), web_config.root_domain.clone());
servers.push((
"Web",
- tokio::spawn(WebServer::run(
- garage.clone(),
+ tokio::spawn(web_server.run(
web_config.bind_addr.clone(),
- web_config.root_domain.clone(),
wait_from(watch_cancel.clone()),
)),
));