Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mmkal
Copy link
Contributor

@mmkal mmkal commented Dec 21, 2020

Fixes #242

@gajus you'd mentioned that we should only surface what's needed, and I did try that out, but I couldn't find a way that seemed right. Exposing only part of the resolved configuration feels dangerous to me, because it'd be easy to try to create a new pool with an old one's settings, and assume that important fields like interceptors, idleTimeout etc. were copied over.

Another way to think of it: it's only exposing one field, configuration. Any breaking changes on ClientConfigurationType are already breaking since it's used as the input to createPool.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.554% when pulling f58c358 on mmkal:expose-pool-configuration into 2eac695 on gajus:master.

@gajus gajus merged commit b59b7ff into gajus:master Dec 23, 2020
@gajus
Copy link
Owner

gajus commented Dec 23, 2020

πŸŽ‰ This PR is included in version 23.4.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

@gajus gajus added the released label Dec 23, 2020
@mmkal mmkal deleted the expose-pool-configuration branch December 23, 2020 22:27
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.

Expose client configuration on pool instance

3 participants