Skip to content

pool: make relevant items pub #15

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

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Conversation

howardjohn
Copy link
Contributor

Currently pool is not pub, and nothing pub uses it, so it isn't accessible. This exposes them for use.

Discussed here: https://discordapp.com/channels/500028886025895936/670880858630258689/1053021031805227109

@@ -33,7 +33,7 @@ pub(super) struct Pool<T> {
// This is a trait to allow the `client::pool::tests` to work for `i32`.
//
// See https://github.com/hyperium/hyper/issues/1429
pub(super) trait Poolable: Unpin + Send + Sized + 'static {
pub trait Poolable: Unpin + Send + Sized + 'static {
Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with just making it all public to start with, to unblock people, but I do think the exposed design could be improved, by making the Pool basically a MakeService over another MakeService (a caching layer over the Connect stuff).

Currently `pool` is not pub, and nothing `pub` uses it, so it isn't
accessible. This exposes them for use.
@seanmonstar seanmonstar merged commit f14e9ac into hyperium:master Dec 19, 2022
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.

2 participants