Add comments to some ClientConfig fields

This commit is contained in:
Matt Joiner 2018-09-03 11:48:11 +10:00
parent a8787e6632
commit d493604adc
1 changed files with 9 additions and 3 deletions

View File

@ -98,7 +98,9 @@ type ClientConfig struct {
MinDialTimeout time.Duration
EstablishedConnsPerTorrent int
HalfOpenConnsPerTorrent int
// Maximum number of peer addresses in reserve.
TorrentPeersHighWater int
// Minumum number of peers before effort is made to obtain more peers.
TorrentPeersLowWater int
// Limit how long handshake can take. This is to reduce the lingering
@ -106,10 +108,14 @@ type ClientConfig struct {
// are obtained with 60s timeout, and 5% of unsuccessful handshakes.
HandshakesTimeout time.Duration
// The IP addresses as our peers should see them. May differ from the
// local interfaces due to NAT or other network configurations.
PublicIp4 net.IP
PublicIp6 net.IP
DisableAcceptRateLimiting bool
// Don't add connections that have the same peer ID as an existing
// connection for a given Torrent.
dropDuplicatePeerIds bool
}