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

cleanup(resharding) - remove new_shard_id_tmp #12272

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

wacban
Copy link
Contributor

@wacban wacban commented Oct 21, 2024

Removing the remaining usages of new_shard_id_tmp and replacing it with ShardId::new. Removed the new_shard_id_tmp too.

@wacban wacban requested a review from a team as a code owner October 21, 2024 14:59
Copy link
Contributor

@Trisfald Trisfald left a comment

Choose a reason for hiding this comment

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

🦀 🚀

// TODO(wacban) This is a temporary solution to aid the transition to having
// ShardId as a newtype. It should be replaced / removed / inlined once the
// transition is complete.
pub const fn new_shard_id_tmp(id: u64) -> ShardId {
Copy link
Contributor

Choose a reason for hiding this comment

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

💀

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I noticed not all methods in impl ShardId are const while they probably could be.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.57%. Comparing base (1fea9e1) to head (e5c2190).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12272      +/-   ##
==========================================
- Coverage   71.58%   71.57%   -0.02%     
==========================================
  Files         836      836              
  Lines      167470   167463       -7     
  Branches   167470   167463       -7     
==========================================
- Hits       119891   119869      -22     
- Misses      42347    42362      +15     
  Partials     5232     5232              
Flag Coverage Δ
backward-compatibility 0.16% <0.00%> (+<0.01%) ⬆️
db-migration 0.16% <0.00%> (+<0.01%) ⬆️
genesis-check 1.25% <0.00%> (+<0.01%) ⬆️
integration-tests 38.82% <20.00%> (-0.02%) ⬇️
linux 71.23% <100.00%> (-0.01%) ⬇️
linux-nightly 71.17% <100.00%> (-0.02%) ⬇️
macos 54.26% <91.66%> (+0.01%) ⬆️
pytests 1.56% <0.00%> (+<0.01%) ⬆️
sanity-checks 1.37% <0.00%> (+<0.01%) ⬆️
unittests 65.35% <96.00%> (-0.01%) ⬇️
upgradability 0.21% <0.00%> (+<0.01%) ⬆️

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.

@wacban wacban added this pull request to the merge queue Oct 21, 2024
Merged via the queue into master with commit 7d6bbcc Oct 21, 2024
29 checks passed
@wacban wacban deleted the waclaw-shard-id branch October 21, 2024 20:00
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