neon_local: timeout on endpoint reconfigures

This commit is contained in:
John Spray
2024-03-08 18:18:07 +00:00
parent 3d228968ef
commit b04cf3ea8b

View File

@@ -774,7 +774,10 @@ impl Endpoint {
spec.shard_stripe_size = stripe_size.map(|s| s.0 as usize);
}
let client = reqwest::Client::new();
let client = reqwest::Client::builder()
.timeout(Duration::from_secs(30))
.build()
.unwrap();
let response = client
.post(format!(
"http://{}:{}/configure",