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

fix block size in health check #742

Merged
merged 9 commits into from
Jan 18, 2025
Merged

fix block size in health check #742

merged 9 commits into from
Jan 18, 2025

Conversation

magdyksaleh
Copy link
Collaborator

What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Was this discussed/approved via a Github issue or the discord / slack channel? Please add a link
    to it if that's the case.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@magdyksaleh magdyksaleh requested a review from tgaddair January 17, 2025 00:11
@@ -66,7 +66,7 @@ impl Health {
adapter_index: 0,
// Block 0 is reserved for health checks
blocks: vec![0],
slots: (0..16).collect(),
slots: (0..self.shard_info().block_size).collect(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit, but can we use the property directly instead of going through a function call that adds extra indirection of function call?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure

@magdyksaleh magdyksaleh requested a review from tgaddair January 17, 2025 01:22
@magdyksaleh magdyksaleh merged commit 223c554 into main Jan 18, 2025
1 check passed
@magdyksaleh magdyksaleh deleted the prefix-cache-health-check branch January 18, 2025 03:52
tgaddair pushed a commit that referenced this pull request Jan 20, 2025
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