We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ab9a7 commit ab3dbc3Copy full SHA for ab3dbc3
tonic/src/service/router.rs
@@ -83,11 +83,11 @@ impl Routes {
83
self
84
}
85
86
- #[cfg(feature = "transport")]
87
- pub(crate) fn prepare(self) -> Self {
+ /// This makes axum perform update some internals of the router that improves perf.
+ ///
88
+ /// See <https://docs.rs/axum/latest/axum/routing/struct.Router.html#a-note-about-performance>
89
+ pub fn prepare(self) -> Self {
90
Self {
- // this makes axum perform update some internals of the router that improves perf
- // see https://docs.rs/axum/latest/axum/routing/struct.Router.html#a-note-about-performance
91
router: self.router.with_state(()),
92
93
0 commit comments