-
Notifications
You must be signed in to change notification settings - Fork 37
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
Implement feed.audit() #47
Comments
@chronoslynx oh that's awesome! -- a PR would be super welcome, even if there isn't any test data included yet! Apologies for not replying sooner; I was on vacation for the past few weeks. I'm not quite sure how to edit the bad data yet, haha. Perhaps if we re-initialize the feed from disk we can get it into a bad state? Perhaps we can workshop this a bit in the PR? Thanks so much for putting in the work; that's amazing! :D |
Hey, no need to apologize. Vacation is important! Inserting bad data will be... weird. Does it write the data immediately to disk (if you're using disk-backed storage)? If so (and we can get the filename), we can open a second handle to it and stomp the data. |
Yeah, that's what I was thinking! -- It's very possible that might surface some other fun issues, but that'll be good to verify! We implement |
It's brittle, however. If the disk implementation every changes the name of the |
Feature Request
Summary
Implement
feed.audit()
to verify all data you think you have is actually there.Motivation
This gives us parity with holepunchto/hypercore#180.
The text was updated successfully, but these errors were encountered: