diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-31 18:34:57 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-31 18:34:57 +0100 |
commit | 84f1db91c4e53a8d0c037fd01adb695fd9400ed5 (patch) | |
tree | 9f80c50a55bcde668f487957b88cf00e682e4190 /src/api/k2v/api_server.rs | |
parent | 9fa20d45bebab2a3f66b9721c3643dbd607d944d (diff) | |
download | garage-84f1db91c4e53a8d0c037fd01adb695fd9400ed5.tar.gz garage-84f1db91c4e53a8d0c037fd01adb695fd9400ed5.zip |
fix things up
Diffstat (limited to 'src/api/k2v/api_server.rs')
-rw-r--r-- | src/api/k2v/api_server.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/api/k2v/api_server.rs b/src/api/k2v/api_server.rs index 1fc512f9..0791c07d 100644 --- a/src/api/k2v/api_server.rs +++ b/src/api/k2v/api_server.rs @@ -12,17 +12,16 @@ use garage_util::socket_address::UnixOrTCPSocketAddress; use garage_model::garage::Garage; -use crate::error::*; use garage_api_common::generic_server::*; - +use garage_api_common::helpers::*; use garage_api_common::signature::verify_request; +use garage_api_s3::cors::*; use crate::batch::*; +use crate::error::*; use crate::index::*; use crate::item::*; use crate::router::Endpoint; -use garage_api_common::helpers::*; -use garage_api_s3::cors::*; pub use garage_api_common::signature::streaming::ReqBody; pub type ResBody = BoxBody<Error>; @@ -31,7 +30,7 @@ pub struct K2VApiServer { garage: Arc<Garage>, } -pub(crate) struct K2VApiEndpoint { +pub struct K2VApiEndpoint { bucket_name: String, endpoint: Endpoint, } |