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

feat: support importing legacy snapshots #114

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

zeapoz
Copy link
Member

@zeapoz zeapoz commented Aug 15, 2024

  • Adds support for importing V0 snapshots.
  • Moves util functions to a separate crate so they can be used across all crates.

@zeapoz zeapoz requested a review from vbar August 15, 2024 10:53

pub const DEFAULT_DB_PATH: &str = "snapshot_db";
pub const SNAPSHOT_HEADER_FILE_NAME: &str = "snapshot-header.json";
pub const SNAPSHOT_HEADER_FILE_NAME: &str = "snapshot_header.json";
Copy link
Collaborator

Choose a reason for hiding this comment

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

why? I bet I'll confuse the name when following some old doc, sooner or later...

Copy link
Member Author

Choose a reason for hiding this comment

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

Every other snapshot file name uses _ over - as a separator. I don't think we should deviate from that

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK...

@zeapoz zeapoz merged commit b8b945b into main Aug 15, 2024
4 checks passed
@zeapoz zeapoz deleted the feat/support-importing-legacy-snapshots branch August 15, 2024 13:01
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