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
478d3251
Commit
478d3251
authored
Jun 14, 2016
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove errors pointed out by govet
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
c2012aa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
dht_net.go
dht_net.go
+0
-2
dht_test.go
dht_test.go
+3
-3
No files found.
dht_net.go
View file @
478d3251
...
...
@@ -64,8 +64,6 @@ func (dht *IpfsDHT) handleNewMessage(s inet.Stream) {
return
}
}
return
}
// sendRequest sends out a request, but also makes sure to
...
...
dht_test.go
View file @
478d3251
...
...
@@ -214,7 +214,7 @@ func TestProvides(t *testing.T) {
t
.
Fatal
(
err
)
}
if
!
bytes
.
Equal
(
bits
.
GetValue
(),
v
)
{
t
.
Fatal
(
"didn't store the right bits (%s, %s)"
,
k
,
v
)
t
.
Fatal
f
(
"didn't store the right bits (%s, %s)"
,
k
,
v
)
}
}
...
...
@@ -289,7 +289,7 @@ func waitForWellFormedTables(t *testing.T, dhts []*IpfsDHT, minPeers, avgPeers i
func
printRoutingTables
(
dhts
[]
*
IpfsDHT
)
{
// the routing tables should be full now. let's inspect them.
fmt
.
Print
ln
(
"checking routing table of %d"
,
len
(
dhts
))
fmt
.
Print
f
(
"checking routing table of %d
\n
"
,
len
(
dhts
))
for
_
,
dht
:=
range
dhts
{
fmt
.
Printf
(
"checking routing table of %s
\n
"
,
dht
.
self
)
dht
.
routingTable
.
Print
()
...
...
@@ -487,7 +487,7 @@ func TestProvidesMany(t *testing.T) {
t
.
Fatal
(
err
)
}
if
!
bytes
.
Equal
(
bits
.
GetValue
(),
v
)
{
t
.
Fatal
(
"didn't store the right bits (%s, %s)"
,
k
,
v
)
t
.
Fatal
f
(
"didn't store the right bits (%s, %s)"
,
k
,
v
)
}
t
.
Logf
(
"announcing provider for %s"
,
k
)
...
...
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