Skip to content
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

Implement tower Service for Client #1420

Merged
merged 2 commits into from Apr 20, 2022

Conversation

Mathspy
Copy link
Contributor

@Mathspy Mathspy commented Jan 3, 2022

Is this something desirable? This requires exposing Pending which seemed to have been hidden intentionally, is that an okay thing to do?
It's pretty straightforward and would help issues like #491 by letting people easily wrap the client in tower services for rate limiting and other desirable functionalities

Copy link
Owner

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the optional part, and we can merge!

Cargo.toml Outdated
@@ -56,6 +56,8 @@ json = ["serde_json"]

multipart = ["mime_guess"]

tower = ["tower-service"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to make this optional, hyper already depends on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@seanmonstar seanmonstar merged commit d24a528 into seanmonstar:master Apr 20, 2022
@Mathspy Mathspy deleted the impl-service-for-client branch April 21, 2022 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants