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
p2p
go-p2p-kad-dht
Commits
3e1ec617
Commit
3e1ec617
authored
Jun 10, 2016
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in test
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
61549792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dht_test.go
dht_test.go
+2
-2
No files found.
dht_test.go
View file @
3e1ec617
...
...
@@ -65,12 +65,12 @@ func setupDHTS(ctx context.Context, n int, t *testing.T) ([]ma.Multiaddr, []peer
addrs
[
i
]
=
dhts
[
i
]
.
peerstore
.
Addrs
(
dhts
[
i
]
.
self
)[
0
]
if
_
,
lol
:=
sanityAddrsMap
[
addrs
[
i
]
.
String
()];
lol
{
t
.
Fatal
(
"While setting up DHTs address got du
m
plicated."
)
t
.
Fatal
(
"While setting up DHTs address got duplicated."
)
}
else
{
sanityAddrsMap
[
addrs
[
i
]
.
String
()]
=
struct
{}{}
}
if
_
,
lol
:=
sanityPeersMap
[
peers
[
i
]
.
String
()];
lol
{
t
.
Fatal
(
"While setting up DHTs peerid got du
m
plicated."
)
t
.
Fatal
(
"While setting up DHTs peerid got duplicated."
)
}
else
{
sanityPeersMap
[
peers
[
i
]
.
String
()]
=
struct
{}{}
}
...
...
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