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
-6
View File
@@ -1,8 +1,6 @@
use std::collections::HashMap;
use std::sync::Arc;
use async_trait::async_trait;
use garage_util::background::*;
use garage_util::time::now_msec;
@@ -12,7 +10,6 @@ use crate::api::*;
use crate::error::Error;
use crate::{Admin, RequestHandler};
#[async_trait]
impl RequestHandler for LocalListWorkersRequest {
type Response = LocalListWorkersResponse;
@@ -35,7 +32,6 @@ impl RequestHandler for LocalListWorkersRequest {
}
}
#[async_trait]
impl RequestHandler for LocalGetWorkerInfoRequest {
type Response = LocalGetWorkerInfoResponse;
@@ -56,7 +52,6 @@ impl RequestHandler for LocalGetWorkerInfoRequest {
}
}
#[async_trait]
impl RequestHandler for LocalGetWorkerVariableRequest {
type Response = LocalGetWorkerVariableResponse;
@@ -78,7 +73,6 @@ impl RequestHandler for LocalGetWorkerVariableRequest {
}
}
#[async_trait]
impl RequestHandler for LocalSetWorkerVariableRequest {
type Response = LocalSetWorkerVariableResponse;