Replies: 1 comment
-
For future people the solution was to implement the tower::Service trait directly in addition to the Hyper service so that either option can be used. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to upgrade an older Hyper 0.14.x to 1.0 and am struggling to get interop with Tower middleware working. In the upgrade guide you are using the
tower:service_fn
to make a Tower service andTowerToHyperService
to convert that service into a Hyper service.If I have a Hyper service (
impl Service<hyper::Request<hyper::body::Incoming>>
) is there something like aHyperToTowerService
that could be used so that thesvc
here could be a Hyper service?This is probably trivially simple for you but has me stumped.
Beta Was this translation helpful? Give feedback.
All reactions