Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-routing
Commits
be9d9edc
Commit
be9d9edc
authored
Jun 02, 2021
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix staticcheck
parent
4526ac26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mock/centralized_test.go
mock/centralized_test.go
+3
-3
No files found.
mock/centralized_test.go
View file @
be9d9edc
...
...
@@ -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
p
i
:=
range
providersFromClient
{
if
p
i
.
ID
==
pi
.
ID
{
// <-- typo?
for
p
:=
range
providersFromClient
{
if
p
.
ID
==
pi
.
ID
()
{
isInClient
=
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment