From 74605a9fef1b920af6a4ad53b253fd36df681f2d Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 2 Jun 2021 09:17:07 -0700 Subject: [PATCH] fix staticcheck This commit was moved from ipfs/go-ipfs-routing@be9d9edc34835283c29a722be14e2898c447ffc0 --- routing/mock/centralized_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routing/mock/centralized_test.go b/routing/mock/centralized_test.go index 2767ff1a2..fc832cf7a 100644 --- a/routing/mock/centralized_test.go +++ b/routing/mock/centralized_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - cid "github.com/ipfs/go-cid" + "github.com/ipfs/go-cid" delay "github.com/ipfs/go-ipfs-delay" u "github.com/ipfs/go-ipfs-util" @@ -44,8 +44,8 @@ func TestClientFindProviders(t *testing.T) { providersFromClient := client.FindProvidersAsync(context.Background(), k, max) isInClient := false - for pi := range providersFromClient { - if pi.ID == pi.ID { // <-- typo? + for p := range providersFromClient { + if p.ID == pi.ID() { isInClient = true } }