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
5329454a
Commit
5329454a
authored
Aug 19, 2019
by
Aarsh Shah
Committed by
Steven Allen
Oct 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed cfg.Queries param from bootstrap
parent
f7353aac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
dht_test.go
dht_test.go
+1
-3
No files found.
dht_test.go
View file @
5329454a
...
...
@@ -198,12 +198,11 @@ func bootstrap(t *testing.T, ctx context.Context, dhts []*IpfsDHT) {
// probably because results compound
cfg
:=
DefaultBootstrapConfig
cfg.Queries = 3
start
:=
rand
.
Intn
(
len
(
dhts
))
// randomize to decrease bias.
for
i
:=
range
dhts
{
dht
:=
dhts
[(
start
+
i
)
%
len
(
dhts
)]
dht.
run
Bootstrap(ctx, cfg)
dht
.
Bootstrap
Once
(
ctx
,
cfg
)
}
}
...
...
@@ -712,7 +711,6 @@ func TestPeriodicBootstrap(t *testing.T) {
}()
cfg
:=
DefaultBootstrapConfig
cfg.Queries = 5
t
.
Logf
(
"dhts are not connected. %d"
,
nDHTs
)
for
_
,
dht
:=
range
dhts
{
...
...
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