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

Snapshot item 2 #418

Merged
merged 6 commits into from
Sep 14, 2021
Merged

Snapshot item 2 #418

merged 6 commits into from
Sep 14, 2021

Conversation

maurolacy
Copy link
Contributor

@maurolacy maurolacy commented Sep 14, 2021

#409 follow-up. Refactors into a snapshot module, and adds Snapshot unit tests.

@maurolacy maurolacy mentioned this pull request Sep 14, 2021
Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Reorg looks good.

Minor comment on a comment text, and a small addition to test cases.
Feel free to merge once you consider these resolved.

packages/storage-plus/src/snapshot/mod.rs Outdated Show resolved Hide resolved
packages/storage-plus/src/snapshot/mod.rs Show resolved Hide resolved
packages/storage-plus/src/snapshot/mod.rs Show resolved Hide resolved
Ok(Some(Some(100)))
);

// Write a changelog at 4, removing the value
Copy link
Member

Choose a reason for hiding this comment

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

removing the value? that doesn't make sense to me

Copy link
Contributor Author

@maurolacy maurolacy Sep 14, 2021

Choose a reason for hiding this comment

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

Why not? It would be tantamount to removing the key. It's supported, so I think it must be tested. Also, I like seeing Some(None) in the results.

These None cases are also present in the original test for SnapshotMap AFAIK.

packages/storage-plus/src/snapshot/mod.rs Show resolved Hide resolved
@maurolacy maurolacy merged commit 9d0dfff into main Sep 14, 2021
@maurolacy maurolacy deleted the snapshot-item-2 branch September 14, 2021 11:24
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