Skip to content

feat: add factory option to BalancedPool#1237

Merged
ronag merged 3 commits intonodejs:mainfrom
nipeshkc7:add-factory-balanced-pool
Feb 20, 2022
Merged

feat: add factory option to BalancedPool#1237
ronag merged 3 commits intonodejs:mainfrom
nipeshkc7:add-factory-balanced-pool

Conversation

@nipeshkc7
Copy link
Copy Markdown
Contributor

closes #1220

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 16, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.03%. Comparing base (5627f87) to head (26dbdd2).
⚠️ Report is 2159 commits behind head on main.

Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nipeshkc7 nipeshkc7 force-pushed the add-factory-balanced-pool branch from ec67852 to 24945d7 Compare February 16, 2022 06:13
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

Sure can do that.

@mcollina
Copy link
Copy Markdown
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
Copy Markdown
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