From: Ian Jackson Date: Wed, 4 Aug 2021 22:40:03 +0000 (+0100) Subject: check max vs target requests X-Git-Tag: hippotat/1.0.0~330 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=12c7c2ec1ac400262882ecd0fe2cab5c183dc27f;p=hippotat.git check max vs target requests Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index a36ec58..a12d1b2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -714,6 +714,15 @@ impl InstanceConfig { )? }; + { + let t = self.target_requests_outstanding; + let m = self.max_requests_outstanding; + if t > m { throw!(anyhow!( + "target_requests_outstanding ({}) > max_requests_outstanding ({})", + t, m + )) } + } + check_batch(self.max_batch_up, "max_batch_up")?; }, @@ -723,8 +732,6 @@ impl InstanceConfig { } check_batch(self.max_batch_down, "max_batch_down")?; }, - - // xxx check target vs max req outstanding } #[throws(AE)]