Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting axum Router state not early #8

Open
FlixCoder opened this issue Dec 21, 2022 · 1 comment
Open

Setting axum Router state not early #8

FlixCoder opened this issue Dec 21, 2022 · 1 comment

Comments

@FlixCoder
Copy link

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.

@FlixCoder FlixCoder changed the title Setting axum Router state early Setting axum Router state not early Dec 21, 2022
@FlixCoder
Copy link
Author

Though I guess the last thing about performance makes me think it might actually be fine the way you did it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant