aboutsummaryrefslogtreecommitdiff
path: root/src/api/k2v
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-13 13:51:34 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-13 13:51:34 +0200
commit983037d965fdcdf089b09fa90fac31501defae9e (patch)
tree716efccaf76d5e165183d550cfc4bcf894482c7d /src/api/k2v
parente4e1f8f0d60545d81c1082ca5f0194962a4a4f79 (diff)
downloadgarage-983037d965fdcdf089b09fa90fac31501defae9e.tar.gz
garage-983037d965fdcdf089b09fa90fac31501defae9e.zip
Possibility of different error types for different APIs
Diffstat (limited to 'src/api/k2v')
-rw-r--r--src/api/k2v/api_server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/k2v/api_server.rs b/src/api/k2v/api_server.rs
index 5f5e9030..b14bcda6 100644
--- a/src/api/k2v/api_server.rs
+++ b/src/api/k2v/api_server.rs
@@ -60,6 +60,7 @@ impl ApiHandler for K2VApiServer {
const API_NAME_DISPLAY: &'static str = "K2V";
type Endpoint = K2VApiEndpoint;
+ type Error = Error;
fn parse_endpoint(&self, req: &Request<Body>) -> Result<K2VApiEndpoint, Error> {
let (endpoint, bucket_name) = Endpoint::from_request(req)?;