K2V #293
2 changed files with 6 additions and 2 deletions
|
@ -102,7 +102,11 @@ impl<A: ApiHandler> ApiServer<A> {
|
||||||
let server = Server::bind(&bind_addr).serve(service);
|
let server = Server::bind(&bind_addr).serve(service);
|
||||||
|
|
||||||
let graceful = server.with_graceful_shutdown(shutdown_signal);
|
let graceful = server.with_graceful_shutdown(shutdown_signal);
|
||||||
info!("{} API server listening on http://{}", A::API_NAME_DISPLAY, bind_addr);
|
info!(
|
||||||
|
"{} API server listening on http://{}",
|
||||||
|
A::API_NAME_DISPLAY,
|
||||||
|
bind_addr
|
||||||
|
);
|
||||||
|
|
||||||
graceful.await?;
|
graceful.await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
@ -8,8 +8,8 @@ use garage_util::error::Error;
|
||||||
|
|
||||||
use garage_admin::metrics::*;
|
use garage_admin::metrics::*;
|
||||||
use garage_admin::tracing_setup::*;
|
use garage_admin::tracing_setup::*;
|
||||||
use garage_api::s3::api_server::S3ApiServer;
|
|
||||||
use garage_api::k2v::api_server::K2VApiServer;
|
use garage_api::k2v::api_server::K2VApiServer;
|
||||||
|
use garage_api::s3::api_server::S3ApiServer;
|
||||||
use garage_model::garage::Garage;
|
use garage_model::garage::Garage;
|
||||||
use garage_web::run_web_server;
|
use garage_web::run_web_server;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue