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 client #250

Merged
merged 1 commit into from
Apr 30, 2023
Merged

implement tower client #250

merged 1 commit into from
Apr 30, 2023

Conversation

Emilgardis
Copy link
Member

No description provided.

This was linked to issues Mar 30, 2022
@Emilgardis Emilgardis force-pushed the tower branch 3 times, most recently from 62258fb to c15a725 Compare April 1, 2022 20:46
@Emilgardis Emilgardis marked this pull request as ready for review April 1, 2022 21:01
@Emilgardis Emilgardis mentioned this pull request Apr 28, 2022
Comment on lines 54 to 59
impl<S, ReqBody> TowerService<S, ReqBody>
//where
// S: Service<Request, Response = Response, Error = Err, Future = Fut> + Clone + Send + Sync,
// Fut: std::future::Future<Output = Result<Response, Err>> + 'static,
// Err: std::error::Error + Sync + Send + 'static,
{
Copy link
Member Author

Choose a reason for hiding this comment

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

should we have this?

examples/tower_client/src/main.rs Show resolved Hide resolved
hyper::Client::builder().build::<_, hyper::Body>(hyper_tls::HttpsConnector::new()),
);
tracing::info!("Creating client");
let client: HelixClient<Box<dyn twitch_api::HttpClient<Error = _>>> =
Copy link
Member Author

Choose a reason for hiding this comment

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

should do this everywhere, it's great

@Emilgardis
Copy link
Member Author

bors r+

🎉

@bors
Copy link
Contributor

bors bot commented Apr 30, 2023

Build succeeded:

@bors bors bot merged commit 462f602 into main Apr 30, 2023
23 checks passed
@bors bors bot deleted the tower branch April 30, 2023 22:43
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.

include example of rate limiting consider using tower
1 participant