aboutsummaryrefslogtreecommitdiff
path: root/src/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-19 17:59:59 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-19 17:59:59 +0000
commitea75564851851b969ef23797537c813ba607b84a (patch)
treed5bdb1a19a546cbbd92e35dbd496acfd16522dd9 /src/api_server.rs
parente325c7f47a9ad7777358b669f62a7c613f676ecd (diff)
downloadgarage-ea75564851851b969ef23797537c813ba607b84a.tar.gz
garage-ea75564851851b969ef23797537c813ba607b84a.zip
More aggressive sync timings & improve other stuff
Diffstat (limited to 'src/api_server.rs')
-rw-r--r--src/api_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api_server.rs b/src/api_server.rs
index 52464f07..fbff7b2f 100644
--- a/src/api_server.rs
+++ b/src/api_server.rs
@@ -1,5 +1,5 @@
use std::collections::VecDeque;
-use std::net::{Ipv6Addr, SocketAddr};
+use std::net::SocketAddr;
use std::sync::Arc;
use futures::future::Future;
@@ -26,7 +26,7 @@ pub async fn run_api_server(
garage: Arc<Garage>,
shutdown_signal: impl Future<Output = ()>,
) -> Result<(), Error> {
- let addr = (Ipv6Addr::LOCALHOST, garage.system.config.api_port).into();
+ let addr = &garage.system.config.api_bind_addr;
let service = make_service_fn(|conn: &AddrStream| {
let garage = garage.clone();