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 DeleteMany to Blockstore interface #5703

Merged
merged 6 commits into from
Mar 2, 2021
Merged

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Mar 2, 2021

No description provided.

@vyzo
Copy link
Contributor Author

vyzo commented Mar 2, 2021

seems I missed the idstore, fixing.

@vyzo vyzo requested a review from raulk March 2, 2021 16:06
blockstore/blockstore.go Outdated Show resolved Hide resolved
blockstore/blockstore.go Show resolved Hide resolved
}

// 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)))
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, indeed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

vyzo and others added 3 commits March 2, 2021 18:19
Co-authored-by: raulk <raul@protocol.ai>
Co-authored-by: raulk <raul@protocol.ai>
@vyzo vyzo merged commit 5c13901 into feat/splitstore Mar 2, 2021
@vyzo vyzo deleted the feat/batch-delete branch March 2, 2021 16:41
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late LGTM

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.

None yet

3 participants