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

Add disk storage ability #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

makew0rld
Copy link
Contributor

Fixes #6

I was not able to use go-ds-flatfs due to its filename limitations, it doesn't support the blocks namespace that ends up being used because that contains a slash: blocks/abc...xyz.

Instead I use the go-datastore example datastore that is extremely simple. They warn that it is unsafe but I believe it to be safe for this application because the only namespace used is blocks/ and the datastore keys are not controlled by the user.

For my work use case (temporary file storage to get a CAR file output for uploading), using a proper datastore like badger would not be worth it, so I've gone with the example one here.

@makew0rld makew0rld requested a review from a team as a code owner June 10, 2024 18:17
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.

Don't always load full file into memory
1 participant