From 7c8fc04b9645d4cbccd30749735d30aad18c9575 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 5 Feb 2025 19:37:38 +0100 Subject: massively speed up compilation of garage_api_admin by not using async_trait --- src/api/admin/special.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/api/admin/special.rs') 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; @@ -39,7 +36,6 @@ impl RequestHandler for OptionsRequest { } } -#[async_trait] impl RequestHandler for MetricsRequest { type Response = Response; @@ -76,7 +72,6 @@ impl RequestHandler for MetricsRequest { } } -#[async_trait] impl RequestHandler for HealthRequest { type Response = Response; @@ -110,7 +105,6 @@ impl RequestHandler for HealthRequest { } } -#[async_trait] impl RequestHandler for CheckDomainRequest { type Response = Response; -- cgit v1.2.3