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

Add tests for Serf #114

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Add tests for Serf #114

merged 1 commit into from
Aug 8, 2024

Conversation

ohkinozomu
Copy link
Contributor

  • It appears that in Serf, nodes that have called Leave() still remain in the members with the StatusLeft state.
    NumMembers() returns a value that includes nodes with the StatusLeft state, which I believe does not meet user expectations.
    I have modified it to return only nodes with the StatusAlive state.

  • Since NumMembers() is not currently being used, I have removed it from the Node interface.

@wind-c
Copy link
Owner

wind-c commented Aug 8, 2024

Good job!

@wind-c wind-c merged commit dc99116 into wind-c:main Aug 8, 2024
1 check passed
@ohkinozomu ohkinozomu deleted the add-serf-test branch August 13, 2024 04:32
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.

2 participants