Commit be9d9edc authored by Marten Seemann's avatar Marten Seemann

fix staticcheck

parent 4526ac26
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
cid "github.com/ipfs/go-cid" "github.com/ipfs/go-cid"
delay "github.com/ipfs/go-ipfs-delay" delay "github.com/ipfs/go-ipfs-delay"
u "github.com/ipfs/go-ipfs-util" u "github.com/ipfs/go-ipfs-util"
...@@ -44,8 +44,8 @@ func TestClientFindProviders(t *testing.T) { ...@@ -44,8 +44,8 @@ func TestClientFindProviders(t *testing.T) {
providersFromClient := client.FindProvidersAsync(context.Background(), k, max) providersFromClient := client.FindProvidersAsync(context.Background(), k, max)
isInClient := false isInClient := false
for pi := range providersFromClient { for p := range providersFromClient {
if pi.ID == pi.ID { // <-- typo? if p.ID == pi.ID() {
isInClient = true isInClient = true
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment