http: avoid heap allocation for torrents with few peers; refactor

This commit is contained in:
Joakim Frostegård 2024-01-27 10:58:03 +01:00
parent 91f5289b2b
commit 352194e0bd
5 changed files with 322 additions and 192 deletions

1
Cargo.lock generated
View file

@ -183,6 +183,7 @@ dependencies = [
"aquatic_http_protocol",
"aquatic_toml_config",
"arc-swap",
"arrayvec",
"cfg-if",
"either",
"futures",