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(pool): forward connect and disconnect events #510

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

dnlup
Copy link
Contributor

@dnlup dnlup commented Jan 6, 2021

Make the Pool forward the connect and disconnect events emitted by its
clients. The Client instance that emitted the event is passed as
the argument.

Fixes #509

lib/pool.js Show resolved Hide resolved
Make the `Pool` forward the `connect` and `disconnect` events emitted by its
clients. The `Client` instance that emitted the event is passed as
argument.
@codecov-io
Copy link

Codecov Report

Merging #510 (cb1a220) into master (b9a19da) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #510   +/-   ##
=======================================
  Coverage   99.60%   99.60%           
=======================================
  Files          15       15           
  Lines        1268     1274    +6     
=======================================
+ Hits         1263     1269    +6     
  Misses          5        5           
Impacted Files Coverage Δ
lib/pool.js 100.00% <100.00%> (ø)

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 b9a19da...8fe22ea. Read the comment docs.

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 5e51cc4 into nodejs:master Jan 6, 2021
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.

Pool should forward Client(s) connect and disconnect events
4 participants