]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Tidy
authorMatt Joiner <anacrolix@gmail.com>
Thu, 10 Jul 2025 06:34:38 +0000 (16:34 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 10 Jul 2025 06:34:38 +0000 (16:34 +1000)
cmd/torrent/download.go
go.mod
go.sum

index f086045e37c5ad2a7689c3e258ba5a0985cd8668..7ca73a44bf6536eae1a81b9ca1913fa49829ed04 100644 (file)
@@ -395,11 +395,9 @@ func downloadErr(ctx context.Context, flags downloadFlags) error {
        if flags.UploadRate != nil {
                clientConfig.UploadRateLimiter = rate.NewLimiter(
                        rate.Limit(*flags.UploadRate),
-                       // Need to ensure the expected peer request length <= the upload
-                       // burst. We can't really encode this logic into the ClientConfig as
-                       // helper because it's quite specific. We're assuming the
-                       // MaxAllocPeerRequestDataPerConn flag is being used to support
-                       // this.
+                       // Need to ensure the expected peer request length <= the upload burst. We can't really
+                       // encode this logic into the ClientConfig as helper because it's quite specific. We're
+                       // assuming the MaxAllocPeerRequestDataPerConn flag is being used to support this.
                        max(int(*flags.MaxAllocPeerRequestDataPerConn), 256<<10))
        }
        if flags.DownloadRate != nil {
diff --git a/go.mod b/go.mod
index a536d305a920bfa946de690b9901bb6473ee273e..19d64f81c0a32da3c2196ca3366f1a3c47219b25 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -49,7 +49,6 @@ require (
        github.com/tidwall/btree v1.6.0
        go.etcd.io/bbolt v1.3.6
        go.opentelemetry.io/otel v1.11.1
-       go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1
        go.opentelemetry.io/otel/sdk v1.11.1
        go.opentelemetry.io/otel/trace v1.11.1
        golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
@@ -129,6 +128,7 @@ require (
        go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.33.0 // indirect
        go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.33.0 // indirect
        go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.1 // indirect
+       go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.1 // indirect
        go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.11.1 // indirect
        go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.11.1 // indirect
        go.opentelemetry.io/otel/metric v0.33.0 // indirect
diff --git a/go.sum b/go.sum
index 4acee22fc3790084187cc360fd5d321098596b0f..1ad7fbb07f3a8d69c780307917189402a6360680 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -105,8 +105,6 @@ github.com/anacrolix/missinggo/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy
 github.com/anacrolix/missinggo/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
 github.com/anacrolix/missinggo/v2 v2.2.0/go.mod h1:o0jgJoYOyaoYQ4E2ZMISVa9c88BbUBVQQW4QeRkNCGY=
 github.com/anacrolix/missinggo/v2 v2.5.1/go.mod h1:WEjqh2rmKECd0t1VhQkLGTdIWXO6f6NLjp5GlMZ+6FA=
-github.com/anacrolix/missinggo/v2 v2.8.1-0.20250610025550-ddd9eb198797 h1:VAfIW3RwRBTZM7V6auEZC0eBPo94ht/R6ywrADNA0q8=
-github.com/anacrolix/missinggo/v2 v2.8.1-0.20250610025550-ddd9eb198797/go.mod h1:vVO5FEziQm+NFmJesc7StpkquZk+WJFCaL0Wp//2sa0=
 github.com/anacrolix/missinggo/v2 v2.8.1-0.20250626123431-aa4691b19d56 h1:+VSnod9Zipey/E5mDTrhooV9y8A8ZaUHSzG/TnrIHug=
 github.com/anacrolix/missinggo/v2 v2.8.1-0.20250626123431-aa4691b19d56/go.mod h1:vVO5FEziQm+NFmJesc7StpkquZk+WJFCaL0Wp//2sa0=
 github.com/anacrolix/mmsg v1.0.1 h1:TxfpV7kX70m3f/O7ielL/2I3OFkMPjrRCPo7+4X5AWw=