Commit 2f52265e authored by Steven Allen's avatar Steven Allen

Make DAGService.Remove take a CID.

We're going to want to do this eventually and we have to refactor anyways so we
might as well do this now.

Fixes ipfs/go-ipfs#4010
parent 30aecc4e
...@@ -68,9 +68,7 @@ type DAGService interface { ...@@ -68,9 +68,7 @@ type DAGService interface {
// Remove removes a node from this DAG. // Remove removes a node from this DAG.
// //
// If the node is not in this DAG, Remove returns ErrNotFound. // If the node is not in this DAG, Remove returns ErrNotFound.
// TODO(ipfs/go-ipfs#4010): Change this to take a CID. Remove(*cid.Cid) error
// This will require a fair amount of refactoring.
Remove(Node) error
// GetMany returns a channel of NodeOptions given a set of CIDs. // GetMany returns a channel of NodeOptions given a set of CIDs.
GetMany(context.Context, []*cid.Cid) <-chan *NodeOption GetMany(context.Context, []*cid.Cid) <-chan *NodeOption
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment