chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5034a
)
check max vs target requests
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 22:40:03 +0000
(23:40 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 22:40:03 +0000
(23:40 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs
patch
|
blob
|
history
diff --git
a/src/config.rs
b/src/config.rs
index a36ec584f987864a27bb2803ca553dce9d574dd8..a12d1b2e1e62a7a46bc395a73597f49bc8832989 100644
(file)
--- 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)]