Open FlixCoder opened 1 year ago
https://docs.rs/axum/latest/axum/struct.Router.html#returning-routers-with-states-from-functions suggests setting the state outside of the router-creation-function.
Though I guess the last thing about performance makes me think it might actually be fine the way you did it..
https://docs.rs/axum/latest/axum/struct.Router.html#returning-routers-with-states-from-functions suggests setting the state outside of the router-creation-function.