Xuanwo opened a new pull request, #8859: URL: https://github.com/apache/opendal/pull/8859
# Which issue does this PR close? Part of #8850. # Rationale for this change After #7743 introduced `Layer::apply_service(&self, inner: Servicer) -> Servicer`, layer wrappers no longer need to be `#[doc(hidden)] pub` types returned from a private `fn layer(&self, ...)` trampoline. This first batch cleans up the 8 layer crates that still used legacy `*Accessor` names (and avoids a redundant `Arc::new(inner)` allocation in `RouteLayer`). # What changes are included in this PR? Across the 8 layer crates (`async-backtrace`, `await-tree`, `fastrace`, `hotpath`, `mime-guess`, `observe-metrics-common`, `route`, `throttle`): - Inline `*Service` construction directly into `Layer::apply_service` and remove the unused private `fn layer()` trampolines (the remaining 7 crates alongside `fastrace`, which already constructed directly in `apply_service`). - Rename the 8 internal service wrappers from `*Accessor` to `*Service` (`AsyncBacktraceService`, `AwaitTreeService`, `FastraceService`, `HotpathService`, `MimeGuessService`, `MetricsService`, `RouteService`, `ThrottleService`). - Make the internal `*Service` and helper body wrappers (`*Wrapper`, `MetricsReader`, `RouteDeleter`) private by removing unnecessary `#[doc(hidden)] pub` visibility after verifying zero external references across the workspace (including all sibling metric crates and the `opendal` facade). - Remove the redundant `Arc::new(inner)` wrapping `inner: Servicer` (`Arc<dyn ServiceDyn>`) in `RouteLayer::apply_service`. # Are there any user-facing changes? No. All renamed and privatized structs were `#[doc(hidden)]` internal wrappers unreferenced outside their respective crates. # Breaking changes # AI Usage Statement - Harness: pi / T3 Code - Model: Gemini 4 Neon - Effort: High - Role: Audited workspace references for the 8 layer crates, implemented the refactor and `RouteLayer` double-`Arc` removal, and verified formatting, clippy, rustdoc, and unit/doc tests locally. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
