diff --git a/merkledag/merkledag.go b/merkledag/merkledag.go index 859f79844..067f9df21 100644 --- a/merkledag/merkledag.go +++ b/merkledag/merkledag.go @@ -6,9 +6,10 @@ import ( "fmt" "sync" + blocks "gx/ipfs/QmVA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg/go-block-format" + bserv "github.com/ipfs/go-ipfs/blockservice" offline "github.com/ipfs/go-ipfs/exchange/offline" - blocks "gx/ipfs/QmVA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg/go-block-format" cid "gx/ipfs/QmTprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS/go-cid" ipldcbor "gx/ipfs/QmXgUVPAxjMLZSyxx818YstJJAoRg3nyPWENmBLVzLtoax/go-ipld-cbor" @@ -32,8 +33,8 @@ type DAGService interface { Get(context.Context, *cid.Cid) (node.Node, error) Remove(node.Node) error - // GetDAG returns, in order, all the single leve child - // nodes of the passed in node. + // GetMany returns a channel of NodeOption given + // a set of CIDs GetMany(context.Context, []*cid.Cid) <-chan *NodeOption Batch() *Batch