1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

peerstore: re-export ErrNotFound

This is to avoid having to import ds elsewhere.
This commit is contained in:
Juan Batiz-Benet
2014-09-26 02:08:28 -07:00
parent 80a927f279
commit a93a31f20b

View File

@ -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)