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 {
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
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
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=