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
809b09ef
Commit
809b09ef
authored
9 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dht: tone down dht bootstrap
move to a less aggressive period. 5m instead of 20s
parent
a10aa377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
dht/dht_bootstrap.go
dht/dht_bootstrap.go
+4
-5
No files found.
dht/dht_bootstrap.go
View file @
809b09ef
...
...
@@ -35,13 +35,12 @@ var DefaultBootstrapConfig = BootstrapConfig{
// of our implementation's robustness, we should lower this down to 8 or 4.
Queries
:
1
,
// For now, this is set to 1
0 seconds
, which is a
n aggressive
period. We are
// For now, this is set to 1
minute
, which is a
medium
period. We are
// We are currently more interested in ensuring we have a properly formed
// DHT than making sure our dht minimizes traffic. Once we are more certain
// implementation's robustness, we should lower this down to 30s or 1m.
Period
:
time
.
Duration
(
20
*
time
.
Second
),
// DHT than making sure our dht minimizes traffic.
Period
:
time
.
Duration
(
5
*
time
.
Minute
),
Timeout
:
time
.
Duration
(
2
0
*
time
.
Second
),
Timeout
:
time
.
Duration
(
1
0
*
time
.
Second
),
}
// Bootstrap ensures the dht routing table remains healthy as peers come and go.
...
...
This diff is collapsed.
Click to expand it.
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