Skip to content

Commit

Permalink
Merge pull request ipfs/go-ipfs-routing#24 from ipfs/fix-staticcheck
Browse files Browse the repository at this point in the history
fix staticcheck

This commit was moved from ipfs/go-ipfs-routing@31f290f
  • Loading branch information
marten-seemann authored Jun 2, 2021
2 parents 9b67c10 + 74605a9 commit 576911b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routing/mock/centralized_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 576911b

Please sign in to comment.