-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Usually (in Kubo), the Blockstore is just built on top of the datastore. There are, however, blockstore implementations (i.e StoreTheHash) that are optimized blockstores and not general purpose datastores. This commit allows providing a custom blockstore, but initializes everything as before when set to nil. The signature of New() changes accordingly. A new option UncachedBlockstore, allows disabling the CachedBlockstore-wrapping that also happens by default, since some datastores/blockstores include their own caching and bloom-filters, so this can potentially be making things slower.
- Loading branch information
Showing
4 changed files
with
31 additions
and
17 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
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