diff options
author | Trinity Pointard <trinity.pointard@gmail.com> | 2021-03-26 22:32:09 +0100 |
---|---|---|
committer | Trinity Pointard <trinity.pointard@gmail.com> | 2021-04-06 05:26:48 +0200 |
commit | a74eccfd6e1cd438912800ea4f96a2f86d267d12 (patch) | |
tree | db1a0ccea1b29c8916ed3246ff71ea66b3323bac /src/garage | |
parent | ee9b685994a95787cd735ee17dc43875f549514f (diff) | |
download | garage-a74eccfd6e1cd438912800ea4f96a2f86d267d12.tar.gz garage-a74eccfd6e1cd438912800ea4f96a2f86d267d12.zip |
document api crate
Diffstat (limited to 'src/garage')
-rw-r--r-- | src/garage/server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs index a5bf68a6..97a9bec2 100644 --- a/src/garage/server.rs +++ b/src/garage/server.rs @@ -8,7 +8,7 @@ use garage_util::background::*; use garage_util::config::*; use garage_util::error::Error; -use garage_api::api_server; +use garage_api::run_api_server; use garage_model::garage::Garage; use garage_rpc::rpc_server::RpcServer; use garage_web::run_web_server; @@ -62,7 +62,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> { info!("Initializing RPC and API servers..."); let run_rpc_server = Arc::new(rpc_server).run(wait_from(watch_cancel.clone())); - let api_server = api_server::run_api_server(garage.clone(), wait_from(watch_cancel.clone())); + let api_server = run_api_server(garage.clone(), wait_from(watch_cancel.clone())); let web_server = run_web_server(garage, wait_from(watch_cancel.clone())); futures::try_join!( |