From 7fe6995a1c7cab5fddfd0ee9327f12448b72756d Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 1 Jul 2016 14:51:19 +0200 Subject: [PATCH] routing: Use correct error variable License: MIT Signed-off-by: Jakub Sztandera --- routing/dht/providers/providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/dht/providers/providers.go b/routing/dht/providers/providers.go index 95d9b70d2..ca8dff18b 100644 --- a/routing/dht/providers/providers.go +++ b/routing/dht/providers/providers.go @@ -123,7 +123,7 @@ func loadProvSet(dstore ds.Datastore, k key.Key) (*providerSet, error) { out := newProviderSet() for e := range res.Next() { if e.Error != nil { - log.Error("got an error: ", err) + log.Error("got an error: ", e.Error) continue } parts := strings.Split(e.Key, "/")