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

khepri_cluster: Restore the use of ra_leaderboard in members/2 #315

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

dumbbell
Copy link
Member

@dumbbell dumbbell commented Feb 7, 2025

Why

The rework of the khepri_cluster:members/2 to make the API close to other functions saw the drop of the call to the ra_leaderboard. This call was an optimization.

How

The function is simply modified to restore the call to ra_leaderboard if the query is a local one.

[Why]
The rework of the `khepri_cluster:members/2` to make the API close to
other functions saw the drop of the call to the `ra_leaderboard`. This
call was an optimization.

[How]
The function is simply modified to restore the call to `ra_leaderboard`
if the query is a local one.
@dumbbell dumbbell added the bug Something isn't working label Feb 7, 2025
@dumbbell dumbbell added this to the v0.17.0 milestone Feb 7, 2025
@dumbbell dumbbell self-assigned this Feb 7, 2025
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.11%. Comparing base (5bd4853) to head (54612b3).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #315      +/-   ##
==========================================
- Coverage   89.19%   89.11%   -0.08%     
==========================================
  Files          22       22              
  Lines        3295     3299       +4     
==========================================
+ Hits         2939     2940       +1     
- Misses        356      359       +3     
Flag Coverage Δ
erlang-26 89.08% <100.00%> (-0.08%) ⬇️
erlang-27 89.02% <100.00%> (-0.14%) ⬇️
os-ubuntu-latest 89.08% <100.00%> (-0.02%) ⬇️
os-windows-latest 89.08% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@dumbbell dumbbell marked this pull request as ready for review February 7, 2025 15:16
@dumbbell dumbbell merged commit 72f768c into main Feb 7, 2025
22 checks passed
@dumbbell dumbbell deleted the restore-leaderboard-use-in-khepri_cluster-members branch February 7, 2025 15:20
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.

1 participant