mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic ws load test: add offers_per_request config var, default 10
This commit is contained in:
parent
cff9b44a7f
commit
0c168404db
3 changed files with 6 additions and 7 deletions
|
|
@ -60,12 +60,12 @@ fn create_announce_request(
|
|||
};
|
||||
|
||||
let info_hash_index = select_info_hash_index(config, &state, rng);
|
||||
|
||||
const NUM_OFFERS: usize = 2;
|
||||
|
||||
let mut offers = Vec::with_capacity(NUM_OFFERS);
|
||||
let mut offers = Vec::with_capacity(
|
||||
config.torrents.offers_per_request
|
||||
);
|
||||
|
||||
for _ in 0..NUM_OFFERS {
|
||||
for _ in 0..config.torrents.offers_per_request {
|
||||
offers.push(AnnounceRequestOffer {
|
||||
offer_id: OfferId(rng.gen()),
|
||||
offer: JsonValue(::serde_json::json!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue