Skip to content

Commit

Permalink
Get rid of OfflineNodeGetter
Browse files Browse the repository at this point in the history
It really just doesn't fit. We're working on making this method obsolete
anyways.
  • Loading branch information
Stebalien committed Sep 1, 2017
1 parent e0c8537 commit eaf2cad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions error.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package format

import "errors"

var ErrNotFound = errors.New("merkledag: not found")
6 changes: 0 additions & 6 deletions merkledag.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ type NodeGetter interface {

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

// TODO(ipfs/go-ipfs#4009): Remove this method after fixing.

// OfflineNodeGetter returns an version of this NodeGetter that will
// make no network requests.
OfflineNodeGetter() NodeGetter
}

// NodeGetters can optionally implement this interface to make finding linked
Expand Down

0 comments on commit eaf2cad

Please sign in to comment.