aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/block.rs
diff options
context:
space:
mode:
authorAlex Auvolat <lx@deuxfleurs.fr>2025-02-05 19:37:38 +0100
committerAlex Auvolat <lx@deuxfleurs.fr>2025-02-05 19:37:38 +0100
commit7c8fc04b9645d4cbccd30749735d30aad18c9575 (patch)
tree9a61083c2d2b4247703a04976f6ba0baa162bfd2 /src/api/admin/block.rs
parentf914db057a85e0fa70f319ee3af85998a551af96 (diff)
downloadgarage-7c8fc04b9645d4cbccd30749735d30aad18c9575.tar.gz
garage-7c8fc04b9645d4cbccd30749735d30aad18c9575.zip
massively speed up compilation of garage_api_admin by not using async_traitrefactor-admin
Diffstat (limited to 'src/api/admin/block.rs')
-rw-r--r--src/api/admin/block.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/api/admin/block.rs b/src/api/admin/block.rs
index 8f0e63eb..73d186a6 100644
--- a/src/api/admin/block.rs
+++ b/src/api/admin/block.rs
@@ -1,7 +1,5 @@
use std::sync::Arc;
-use async_trait::async_trait;
-
use garage_util::data::*;
use garage_util::error::Error as GarageError;
use garage_util::time::now_msec;
@@ -18,7 +16,6 @@ use crate::api::*;
use crate::error::*;
use crate::{Admin, RequestHandler};
-#[async_trait]
impl RequestHandler for LocalListBlockErrorsRequest {
type Response = LocalListBlockErrorsResponse;
@@ -43,7 +40,6 @@ impl RequestHandler for LocalListBlockErrorsRequest {
}
}
-#[async_trait]
impl RequestHandler for LocalGetBlockInfoRequest {
type Response = LocalGetBlockInfoResponse;
@@ -109,7 +105,6 @@ impl RequestHandler for LocalGetBlockInfoRequest {
}
}
-#[async_trait]
impl RequestHandler for LocalRetryBlockResyncRequest {
type Response = LocalRetryBlockResyncResponse;
@@ -143,7 +138,6 @@ impl RequestHandler for LocalRetryBlockResyncRequest {
}
}
-#[async_trait]
impl RequestHandler for LocalPurgeBlocksRequest {
type Response = LocalPurgeBlocksResponse;