From a377c43a101bbf866f9369745d5bd3bc2e666f41 Mon Sep 17 00:00:00 2001 From: "@permadeath.com" Date: Wed, 9 Sep 2026 08:44:05 -0400 Subject: [PATCH] fix(swarm): give the load generator's client a connect and total timeout reqwest::Client::new() has no timeout, so a hung server under test could stall a swarm run forever instead of failing one request. Change-Id: I3729dcdd27f8195ae4f651548c19e0e164db13d3 --- Cargo.lock | 1 + crates/didbot-swarm/Cargo.toml | 1 + crates/didbot-swarm/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 98106bf8..bc89ef5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1295,6 +1295,7 @@ name = "didbot-swarm" version = "0.1.0" dependencies = [ "didbot-attest", + "didbot-http", "didbot-lexicon", "didbot-pds", "hex", diff --git a/crates/didbot-swarm/Cargo.toml b/crates/didbot-swarm/Cargo.toml index 253b9fbc..77ff79b2 100644 --- a/crates/didbot-swarm/Cargo.toml +++ b/crates/didbot-swarm/Cargo.toml @@ -9,6 +9,7 @@ repository.workspace = true publish.workspace = true [dependencies] +didbot-http.workspace = true hex.workspace = true rand.workspace = true reqwest.workspace = true diff --git a/crates/didbot-swarm/src/lib.rs b/crates/didbot-swarm/src/lib.rs index eb02d988..ab8f824a 100644 --- a/crates/didbot-swarm/src/lib.rs +++ b/crates/didbot-swarm/src/lib.rs @@ -135,7 +135,7 @@ impl Pds { pub fn new(base_url: &str) -> Self { Self { base_url: base_url.trim_end_matches('/').to_owned(), - http: reqwest::Client::new(), + http: didbot_http::client(), } } -- 2.51.2