We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ba5ade commit 4a3490bCopy full SHA for 4a3490b
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