mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-18 01:17:50 +00:00
admin api: refactor using macro
This commit is contained in:
@@ -357,8 +357,8 @@ impl ApiHandler for S3ApiServer {
|
||||
}
|
||||
|
||||
impl ApiEndpoint for S3ApiEndpoint {
|
||||
fn name(&self) -> Cow<'_, str> {
|
||||
Cow::borrowed(self.endpoint.name())
|
||||
fn name(&self) -> Cow<'static, str> {
|
||||
Cow::Borrowed(self.endpoint.name())
|
||||
}
|
||||
|
||||
fn add_span_attributes(&self, span: SpanRef<'_>) {
|
||||
|
||||
Reference in New Issue
Block a user