diff options
author | Alex Auvolat <alex@adnab.me> | 2023-10-03 18:40:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-10-03 18:40:37 +0200 |
commit | 2e656b541b1dd1492798e1ed764fa40868da4d6a (patch) | |
tree | 66fbf4c11a248d3c92cf44c4d3f18663670acbbe /src/api/admin/api_server.rs | |
parent | 9ac1d5be0eba1b3b35f7fb2f99fe8df549044197 (diff) | |
parent | 1243db87f2090a3302c7c8beb386e68ddf9b66b5 (diff) | |
download | garage-2e656b541b1dd1492798e1ed764fa40868da4d6a.tar.gz garage-2e656b541b1dd1492798e1ed764fa40868da4d6a.zip |
Merge branch 'main' into nextv0.9.0-rc1
Diffstat (limited to 'src/api/admin/api_server.rs')
-rw-r--r-- | src/api/admin/api_server.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/admin/api_server.rs b/src/api/admin/api_server.rs index cc04d81f..53503220 100644 --- a/src/api/admin/api_server.rs +++ b/src/api/admin/api_server.rs @@ -1,5 +1,4 @@ use std::collections::HashMap; -use std::net::SocketAddr; use std::sync::Arc; use async_trait::async_trait; @@ -18,6 +17,7 @@ use prometheus::{Encoder, TextEncoder}; use garage_model::garage::Garage; use garage_rpc::system::ClusterHealthStatus; use garage_util::error::Error as GarageError; +use garage_util::socket_address::UnixOrTCPSocketAddress; use crate::generic_server::*; @@ -61,12 +61,12 @@ impl AdminApiServer { pub async fn run( self, - bind_addr: SocketAddr, + bind_addr: UnixOrTCPSocketAddress, shutdown_signal: impl Future<Output = ()>, ) -> Result<(), GarageError> { let region = self.garage.config.s3_api.s3_region.clone(); ApiServer::new(region, self) - .run_server(bind_addr, shutdown_signal) + .run_server(bind_addr, Some(0o220), shutdown_signal) .await } |