Skip to content

Commit

Permalink
Make DAGService.Remove take a CID.
Browse files Browse the repository at this point in the history
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/kubo#4010
  • Loading branch information
Stebalien committed Aug 17, 2017
1 parent 90168bc commit 8a8e458
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions merkledag.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ type DAGService interface {
// Remove removes a node from this DAG.
//
// If the node is not in this DAG, Remove returns ErrNotFound.
// TODO(ipfs/go-ipfs#4010): Change this to take a CID.
// This will require a fair amount of refactoring.
Remove(Node) error
Remove(*cid.Cid) error

// GetMany returns a channel of NodeOptions given a set of CIDs.
GetMany(context.Context, []*cid.Cid) <-chan *NodeOption
Expand Down

0 comments on commit 8a8e458

Please sign in to comment.