Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
a93a31f2
Commit
a93a31f2
authored
Sep 26, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peerstore: re-export ErrNotFound
This is to avoid having to import ds elsewhere.
parent
80a927f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
peer/peerstore.go
peer/peerstore.go
+4
-0
No files found.
peer/peerstore.go
View file @
a93a31f2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment