From 206f41811d1653fd38c05f00b3f6614b69999499 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 11 Aug 2022 21:37:14 +0700 Subject: [PATCH] save (#5010) --- cmd/downloader/downloader/downloadercfg/downloadercfg.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/downloader/downloader/downloadercfg/downloadercfg.go b/cmd/downloader/downloader/downloadercfg/downloadercfg.go index e0ba48e4d..46683df0a 100644 --- a/cmd/downloader/downloader/downloadercfg/downloadercfg.go +++ b/cmd/downloader/downloader/downloadercfg/downloadercfg.go @@ -103,7 +103,6 @@ func New(snapDir string, verbosity lg.Level, dbg bool, natif nat.Interface, down } } // rates are divided by 2 - I don't know why it works, maybe bug inside torrent lib accounting - log.Warn("alex", "a", rate.Limit(uploadRate.Bytes()), "b", 2*DefaultNetworkChunkSize) torrentConfig.UploadRateLimiter = rate.NewLimiter(rate.Limit(uploadRate.Bytes()), 2*DefaultNetworkChunkSize) // default: unlimited if downloadRate.Bytes() < 500_000_000 { b := int(2 * DefaultNetworkChunkSize)