From f75f4a4b6d265918c756015e6c9518bb8af5a0bb Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow <brian.holderchow@gmail.com> Date: Tue, 28 Oct 2014 01:06:28 -0700 Subject: [PATCH] feat(routing) define routing.ErrNotFound --- routing/routing.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routing/routing.go b/routing/routing.go index cb60e5ee8..7f0486c76 100644 --- a/routing/routing.go +++ b/routing/routing.go @@ -1,12 +1,17 @@ package routing import ( + "errors" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" peer "github.com/jbenet/go-ipfs/peer" u "github.com/jbenet/go-ipfs/util" ) +// ErrNotFound is returned when a search fails to find anything +var ErrNotFound = errors.New("routing: key not found") + // IpfsRouting is the routing module interface // It is implemented by things like DHTs, etc. type IpfsRouting interface { -- GitLab