new torrent build fix

This commit is contained in:
nikk gitanes
2021-08-22 09:00:09 +03:00
parent 60b4a65bf2
commit c904dd1522
8 changed files with 89 additions and 39 deletions

View File

@@ -38,7 +38,6 @@ type BTSets struct {
DownloadRateLimit int // in kb, 0 - inf
UploadRateLimit int // in kb, 0 - inf
ConnectionsLimit int
DhtConnectionLimit int // 0 - inf
PeersListenPort int
}
@@ -123,7 +122,6 @@ func SetDefault() {
sets.CacheSize = 96 * 1024 * 1024 // 96 MB
sets.PreloadCache = 0
sets.ConnectionsLimit = 23
sets.DhtConnectionLimit = 500
sets.RetrackersMode = 1
sets.TorrentDisconnectTimeout = 30
sets.ReaderReadAHead = 95 // 95% preload