-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(client): change Connect
trait into an alias for Service
#1912
Conversation
Can you then re-export |
Yes, I think it should be. On master right now, there is |
Yeah, my library implements own connector now so ideally I'd prefer to depend on hyper traits, without need to keep tower-service up to date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'm not sure if this is the right route just yet. I originally wanted to introduce MakeConnection into this mix slowly. I was only going to introduce MakeConnection within client Connect (new make service for SendRequest).
That said, why not use Connect as a local version of HttpMakeConnection? So that means instead to take a &mut self and follow towers pattern? I will draft my PR here in a few to see which path we prefer.
The other thing is I want to move away from the |
Ok, I opened a draft Pr with what I was working on over the weekend #1915 |
2493c7f
to
fd43f13
Compare
9f2fda8
to
846b31b
Compare
The `Connect` trait is now essentially an alias for `Service<Destination>`, with a blanket implementation as such, and is sealed. Closes #1902 BREAKING CHANGE: Any manual implementations of `Connect` must instead implement `tower::Service<Destination>`.
846b31b
to
64318cc
Compare
The
Connect
trait is now essentially an alias forService<Destination>
, with a blanket implementation as such, and issealed.
Closes #1902
BREAKING CHANGE: Any manual implementations of
Connect
must insteadimplement
tower::Service<Destination>
.