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

feat: add factory option to BalancedPool #1237

Merged
merged 3 commits into from Feb 20, 2022

Conversation

nipeshkc7
Copy link
Contributor

closes #1220

@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2022

Codecov Report

Merging #1237 (26dbdd2) into main (5627f87) will increase coverage by 0.18%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1237      +/-   ##
==========================================
+ Coverage   93.85%   94.03%   +0.18%     
==========================================
  Files          43       43              
  Lines        4052     4057       +5     
==========================================
+ Hits         3803     3815      +12     
+ Misses        249      242       -7     
Impacted Files Coverage Δ
lib/balanced-pool.js 97.43% <100.00%> (+0.37%) ⬆️
lib/client.js 98.03% <0.00%> (+0.12%) ⬆️
lib/fetch/request.js 85.06% <0.00%> (+2.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5627f87...26dbdd2. Read the comment docs.

Copy link
Member

@ronag ronag left a comment

Choose a reason for hiding this comment

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

Can you add a test for the factory actually being used?

Copy link
Member

@ronag ronag left a comment

Choose a reason for hiding this comment

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

Also I see a problem here. The factory options can overlap with the constructor options. Not sure how to resolve that. I think we might have similar issues in the other agents as well. @mcollina wdyt?

@nipeshkc7 nipeshkc7 marked this pull request as ready for review February 16, 2022 06:21
@nipeshkc7
Copy link
Contributor Author

Can you add a test for the factory actually being used?

Sure can do that.

@mcollina
Copy link
Member

Could you add the option to our docs?

I'm ok with the behavior - I assume the factory can override any of the agent options.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@ronag ronag merged commit 6afb872 into nodejs:main Feb 20, 2022
KhafraDev pushed a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
* feat: add factory option to BalancedPool

* add tests for balanced-pool with factory option

* update docs for balanced-pool with factory option
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
* feat: add factory option to BalancedPool

* add tests for balanced-pool with factory option

* update docs for balanced-pool with factory option
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
* feat: add factory option to BalancedPool

* add tests for balanced-pool with factory option

* update docs for balanced-pool with factory option
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.

BalancedPool is missing factory option
4 participants