Skip to content

How to use state with a tower::Service and Pin<Box<dyn Future>> middleware? #3023

Closed Answered by squeaktoy
squeaktoy asked this question in Q&A
Discussion options

You must be logged in to vote

I changed the code to use middleware::from_fn_with_state and that fixed the errors.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by squeaktoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant