massively speed up compilation of garage_api_admin by not using async_trait

This commit is contained in:
Alex Auvolat
2025-02-05 19:37:38 +01:00
parent f914db057a
commit 7c8fc04b96
11 changed files with 4 additions and 68 deletions
-5
View File
@@ -2,8 +2,6 @@ use std::collections::HashMap;
use std::fmt::Write;
use std::sync::Arc;
use async_trait::async_trait;
use format_table::format_table_to_string;
use garage_util::data::*;
@@ -20,7 +18,6 @@ use crate::api::*;
use crate::error::Error;
use crate::{Admin, RequestHandler};
#[async_trait]
impl RequestHandler for LocalCreateMetadataSnapshotRequest {
type Response = LocalCreateMetadataSnapshotResponse;
@@ -34,7 +31,6 @@ impl RequestHandler for LocalCreateMetadataSnapshotRequest {
}
}
#[async_trait]
impl RequestHandler for LocalGetNodeStatisticsRequest {
type Response = LocalGetNodeStatisticsResponse;
@@ -99,7 +95,6 @@ impl RequestHandler for LocalGetNodeStatisticsRequest {
}
}
#[async_trait]
impl RequestHandler for GetClusterStatisticsRequest {
type Response = GetClusterStatisticsResponse;