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

Encode refs according to the spec #189

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Encode refs according to the spec #189

merged 1 commit into from
Oct 11, 2024

Conversation

paraseba
Copy link
Collaborator

No description provided.

@@ -70,14 +72,16 @@ impl Ref {
pub struct BranchVersion(pub u64);

impl BranchVersion {
const MAX_VERSION_NUMBER: u64 = 1099511627775;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really think 10 trillion is enough?!? 😆

I would love for someone to use icechunk so heavily that they hit this limit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

they'll get a Rust panic too!

@paraseba paraseba merged commit eee4f7f into main Oct 11, 2024
2 checks passed
@paraseba paraseba deleted the seba/ref-numbering branch October 11, 2024 19:10
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