Replies: 4 comments 6 replies
-
Looks related to the |
Beta Was this translation helpful? Give feedback.
-
RequestDecompression is the Service of RequestDecompressionLayer. RequestDecompression only implements Since you're returning a Route that doesn't have any concrete body types associated with it, it treats the body as just a generic type, but since RequestDecompressionLayer's Service only implements Service when there is a concrete wrapper guaranteed around the request body type, this won't compile. |
Beta Was this translation helpful? Give feedback.
-
I think it might be worth it to move the discussion here: tower-rs/tower-http#491 |
Beta Was this translation helpful? Give feedback.
-
this discussion may help: #2549 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions