mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 07:28:20 +08:00
Merge pull request #944 from jbenet/dht-bootstrap-tone-down
dht: tone down dht bootstrap
This commit is contained in:
@ -35,13 +35,12 @@ var DefaultBootstrapConfig = BootstrapConfig{
|
|||||||
// of our implementation's robustness, we should lower this down to 8 or 4.
|
// of our implementation's robustness, we should lower this down to 8 or 4.
|
||||||
Queries: 1,
|
Queries: 1,
|
||||||
|
|
||||||
// For now, this is set to 10 seconds, which is an 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
|
// 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
|
// DHT than making sure our dht minimizes traffic.
|
||||||
// implementation's robustness, we should lower this down to 30s or 1m.
|
Period: time.Duration(5 * time.Minute),
|
||||||
Period: time.Duration(20 * time.Second),
|
|
||||||
|
|
||||||
Timeout: time.Duration(20 * time.Second),
|
Timeout: time.Duration(10 * time.Second),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bootstrap ensures the dht routing table remains healthy as peers come and go.
|
// Bootstrap ensures the dht routing table remains healthy as peers come and go.
|
||||||
|
Reference in New Issue
Block a user