You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root of the issue seems to be RequestDecompression<S> only implementing Service when the inner service S implements Service with DecompressionBody wrapper wedged inside there.
It makes sense why that is so, but the OP is still at a loss as to how to integrate it into their build method.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Cross referencing: tokio-rs/axum#2747
The root of the issue seems to be
RequestDecompression<S>
only implementing Service when the inner service S implements Service with DecompressionBody wrapper wedged inside there.It makes sense why that is so, but the OP is still at a loss as to how to integrate it into their
build
method.Summary
https://github.com/GreptimeTeam/greptimedb/blob/a58256d4d3f031470dd765a8cbc849dbbba6863a/src/servers/src/http.rs#L660-L694
Could you add RequestDecompressionLayer to the middleware tower in the code snippet above?
I tried:
and got:
I tried a lot of other pattern but just lost in the type hell.
axum version
0.6.20
I cannot upgrade due to GreptimeTeam/greptimedb#3610
tower-http version
0.4.4
Beta Was this translation helpful? Give feedback.
All reactions