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

Extract interface from membership.HostInfo #3996

Merged
merged 2 commits into from
Mar 5, 2023
Merged

Conversation

MichaelSnowden
Copy link
Contributor

@MichaelSnowden MichaelSnowden commented Feb 28, 2023

What changed?
I renamed the HostInfo struct to the unexported ringpopHostInfo and extracted an interface from it called HostInfo.

Why?
To separate the membership interfaces from the ring pop implementation.

How did you test it?
No new executable statements.

Potential risks
It's a breaking change for anyone that depended on the HostInfo struct.

Is hotfix candidate?
No.

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner February 28, 2023 23:58

package membership

type ringpopHostInfo struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember you move the file to a subfolder ringpop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's in a later PR that depends on this change: #3999

@MichaelSnowden MichaelSnowden merged commit abd0297 into master Mar 5, 2023
@MichaelSnowden MichaelSnowden deleted the snowden/hostinfo branch March 5, 2023 20:02
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.

3 participants