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

ConnectionFactory #755

Merged
merged 3 commits into from Aug 28, 2022
Merged

ConnectionFactory #755

merged 3 commits into from Aug 28, 2022

Conversation

conorbros
Copy link
Member

A change pulled from the NodePool PR. No functional changes, just encapsulates the logic for creating new connections.

@conorbros conorbros force-pushed the connection-factory branch 2 times, most recently from 6ba41a5 to f71840a Compare August 24, 2022 01:15
@conorbros conorbros requested a review from rukai August 24, 2022 03:40
Copy link
Member

@rukai rukai left a comment

Choose a reason for hiding this comment

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

Heres some initial feedback

@conorbros conorbros force-pushed the connection-factory branch 2 times, most recently from a74d193 to 790da92 Compare August 26, 2022 05:43
Copy link
Member

@rukai rukai left a comment

Choose a reason for hiding this comment

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

I'm not 100% confident this is the best way to organize this state.
My main concern is the multiple clone implementations that clone various internal state, you have to understand the internals of these functions to know which one is the right one to call.
Edit: Oh the new name is clearer, I missed that before.

But the new abstraction does also have some advantages so... LGTM 👍

@rukai rukai enabled auto-merge (squash) August 28, 2022 23:19
@rukai rukai merged commit 6b4ee3a into shotover:main Aug 28, 2022
@conorbros conorbros deleted the connection-factory branch August 28, 2022 23:37
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.

None yet

3 participants