From 6a4751615436612cee32584f2e9755b96743f1be Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 10 Jul 2025 16:29:54 +1000 Subject: [PATCH] cmd/torrent: Use default download rate limit burst --- cmd/torrent/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/torrent/download.go b/cmd/torrent/download.go index e05b3242..f086045e 100644 --- a/cmd/torrent/download.go +++ b/cmd/torrent/download.go @@ -403,7 +403,7 @@ func downloadErr(ctx context.Context, flags downloadFlags) error { max(int(*flags.MaxAllocPeerRequestDataPerConn), 256<<10)) } if flags.DownloadRate != nil { - clientConfig.DownloadRateLimiter = rate.NewLimiter(rate.Limit(*flags.DownloadRate), 1<<16) + clientConfig.DownloadRateLimiter = rate.NewLimiter(rate.Limit(*flags.DownloadRate), 0) } { logger := log.Default.WithNames("main", "client") -- 2.51.0