diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-05 19:37:38 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-05 19:37:38 +0100 |
commit | 7c8fc04b9645d4cbccd30749735d30aad18c9575 (patch) | |
tree | 9a61083c2d2b4247703a04976f6ba0baa162bfd2 /src/api/admin/special.rs | |
parent | f914db057a85e0fa70f319ee3af85998a551af96 (diff) | |
download | garage-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/special.rs')
-rw-r--r-- | src/api/admin/special.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/api/admin/special.rs b/src/api/admin/special.rs index 79f1f4d7..0ecf82bc 100644 --- a/src/api/admin/special.rs +++ b/src/api/admin/special.rs @@ -1,7 +1,5 @@ use std::sync::Arc; -use async_trait::async_trait; - use http::header::{ ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ALLOW, }; @@ -20,7 +18,6 @@ use crate::api_server::ResBody; use crate::error::*; use crate::{Admin, RequestHandler}; -#[async_trait] impl RequestHandler for OptionsRequest { type Response = Response<ResBody>; @@ -39,7 +36,6 @@ impl RequestHandler for OptionsRequest { } } -#[async_trait] impl RequestHandler for MetricsRequest { type Response = Response<ResBody>; @@ -76,7 +72,6 @@ impl RequestHandler for MetricsRequest { } } -#[async_trait] impl RequestHandler for HealthRequest { type Response = Response<ResBody>; @@ -110,7 +105,6 @@ impl RequestHandler for HealthRequest { } } -#[async_trait] impl RequestHandler for CheckDomainRequest { type Response = Response<ResBody>; |