diff --git a/peer/peerstore.go b/peer/peerstore.go index 2184d89425e7e9876bc432e6e873c34005dcfe30..9c0f28df3166d13d4f07adfbae194a3b5b7ac281 100644 --- a/peer/peerstore.go +++ b/peer/peerstore.go @@ -9,6 +9,10 @@ import ( ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/datastore.go" ) +// ErrNotFound signals a peer wasn't found. this is here to avoid having to +// leak the ds abstraction to clients of Peerstore, just for the error. +var ErrNotFound = ds.ErrNotFound + // Peerstore provides a threadsafe collection for peers. type Peerstore interface { Get(ID) (*Peer, error)