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

fix: make sure kClients exists on Agent #482

Merged
merged 2 commits into from
Dec 22, 2023
Merged

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Dec 22, 2023

TypeError: clients is not iterable

> TypeError: clients is not iterable
@fengmk2 fengmk2 added the bug Something isn't working label Dec 22, 2023
const poolStatsMap: Record<string, PoolStat> = {};
if (!clients) {
Copy link
Member Author

Choose a reason for hiding this comment

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

reapeat

> clients = undefined
undefined
> for (const [ key, ref ] of clients) {}
Uncaught TypeError: clients is not iterable
> clients = null
null
> for (const [ key, ref ] of clients) {}
Uncaught TypeError: clients is not iterable

Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (5f9be29) 98.79% compared to head (ea2512b) 98.67%.
Report is 1 commits behind head on master.

Files Patch % Lines
src/HttpClient.ts 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #482      +/-   ##
==========================================
- Coverage   98.79%   98.67%   -0.13%     
==========================================
  Files          10       10              
  Lines        1583     1586       +3     
  Branches      272      274       +2     
==========================================
+ Hits         1564     1565       +1     
- Misses         19       21       +2     

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

@fengmk2 fengmk2 merged commit 574bd47 into master Dec 22, 2023
18 of 20 checks passed
@fengmk2 fengmk2 deleted the avoid-clients-not-exists branch December 22, 2023 08:44
fengmk2 pushed a commit that referenced this pull request Dec 22, 2023
[skip ci]

## [3.22.1](v3.22.0...v3.22.1) (2023-12-22)

### Bug Fixes

* make sure kClients exists on Agent ([#482](#482)) ([574bd47](574bd47))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant