generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
ReadOnlyOf
to NewReadOnly
and accept both v1 and v2 payload
Rename the `blockstore.ReadOnlyOf` to `blockstore.NewReadOnly` for better readability and consistent naming. Allow the function to accept both v1 and v2 payloads and "do the right thing" depending on the input. Optionally, allow the caller to supply an index that, if present, will overrider any existing index. Otherwise an in-memory index is generated. Note, `blockstore.OpenReadOnly` only accepts v2 payload. Future PRs will change this function to also accept both versions for consistency, and drop modification of given path, delegating any writing to the write-specific APIs like `index.Attach` and `index.Generate`. Fixes #128 This commit was moved from ipld/go-car@4e863b2
- Loading branch information
Showing
3 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters