aboutsummaryrefslogtreecommitdiff
path: root/src/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-18 19:39:08 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-18 19:39:57 +0200
commit4ba54ccfca2ff8e56c58d0a652de256428282490 (patch)
treed98bc1bcb565bff4d018b252f5f1397253f9f697 /src/api_server.rs
parentbd1618e78e4c4305a73bdd40004de2abe46c3ceb (diff)
downloadgarage-4ba54ccfca2ff8e56c58d0a652de256428282490.tar.gz
garage-4ba54ccfca2ff8e56c58d0a652de256428282490.zip
Reorder imports.
Trying to separate: 1. Stuff for handling the swarm of nodes and generic table data replication 2. Stuff for the object store core application: metadata tables and block management 3. Stuff for the S3 API
Diffstat (limited to 'src/api_server.rs')
-rw-r--r--src/api_server.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/api_server.rs b/src/api_server.rs
index 14c58fc4..4070be6c 100644
--- a/src/api_server.rs
+++ b/src/api_server.rs
@@ -9,14 +9,15 @@ use hyper::server::conn::AddrStream;
use hyper::service::{make_service_fn, service_fn};
use hyper::{Body, Method, Request, Response, Server, StatusCode};
-use crate::block::INLINE_THRESHOLD;
-use crate::block_ref_table::*;
use crate::data::*;
use crate::error::Error;
use crate::http_util::*;
+use crate::table::EmptySortKey;
+
+use crate::block::INLINE_THRESHOLD;
+use crate::block_ref_table::*;
use crate::object_table::*;
use crate::server::Garage;
-use crate::table::EmptySortKey;
use crate::version_table::*;
type BodyType = Box<dyn HttpBody<Data = Bytes, Error = Error> + Send + Unpin>;