From cb1f2a923c866f064a7f56843fc810bf3519ad1c Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Thu, 7 Nov 2019 17:50:29 +0300 Subject: [PATCH] Fix `setup/idreservoir.go` --- pkg/setup/idreservoir.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/setup/idreservoir.go b/pkg/setup/idreservoir.go index 9bac9fd19..0f56c9e39 100644 --- a/pkg/setup/idreservoir.go +++ b/pkg/setup/idreservoir.go @@ -3,6 +3,7 @@ package setup import ( "context" "encoding/json" + "errors" "fmt" "sync" @@ -13,6 +14,8 @@ import ( "github.com/SkycoinProject/skywire-mainnet/pkg/routing" ) +var ErrNoKey = errors.New("id reservoir has no key") + type idReservoir struct { rec map[cipher.PubKey]uint8 ids map[cipher.PubKey][]routing.RouteID