-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 DeleteMany to Blockstore interface #5703
Conversation
seems I missed the idstore, fixing. |
blockstore/blockstore.go
Outdated
} | ||
|
||
// FromDatastore creates a new blockstore backed by the given datastore. | ||
func FromDatastore(dstore ds.Batching) Blockstore { | ||
return WrapIDStore(blockstore.NewBlockstore(dstore)) | ||
return WrapIDStore(Adapt(blockstore.NewBlockstore(dstore))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Adapt
here is not necessary, and it will lead to double adapting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
Co-authored-by: raulk <[email protected]>
Co-authored-by: raulk <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Late LGTM
No description provided.