ipfs / ipfs/go-ipld-format

RFC: Remove Delete methods from DagService

Open
#43 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
65
Forks
27
PR merge metrics
No merged PRs in 30d

Description

When we switch the blockstore over to use multihashes instead of Cids the Deletes from a Dagservice that is backed by a blockstore will become problematic.

From https://github.com/ipfs/go-ipfs/pull/5510:

> The dagservice has a Delete method. This is problematic. For example if you insert a raw and a Protobuf version of the same Node then delete the one of those nodes via the dagservice both will be deleted. We should probably delete these methods. The only place the Delete method seams to be used is in dagutils/utils.go. I have marked two of the three instances with comments.

Does the delete methods serve a useful purpose?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.