#[derive_deftly(InspectableConfigAuto, InstanceConfig)]
pub struct InstanceConfig {
// Exceptional settings
- #[deftly(special="link", skl="SKL::None")] pub link: LinkName,
- #[deftly(per_client)] pub secret: Secret,
- #[deftly(global, special="ipif", skl="SKL::PerClient")] pub ipif: String,
+ #[deftly(special, skl="SKL::None")] pub link: LinkName,
+ #[deftly(per_client)] pub secret: Secret,
+ #[deftly(global, special, skl="SKL::PerClient")] pub ipif: String,
// Capped settings:
#[deftly(limited)] pub max_batch_down: u32,
#[deftly(limited)] pub max_queue_time: Duration,
#[deftly(limited)] pub http_timeout: Duration,
#[deftly(limited)] pub target_requests_outstanding: u32,
- #[deftly(special="max_up", skl="SKL::Limited")] pub max_batch_up: u32,
+ #[deftly(special, skl="SKL::Limited")] pub max_batch_up: u32,
// Ordinary settings, used by both, not client-specifi:
#[deftly(global)] pub addrs: Vec<IpAddr>,
}
#[throws(AE)]
- pub fn special_max_up(&self, key: &'static str, skl: SKL) -> u32 {
+ pub fn special_max_batch_up(&self, key: &'static str, skl: SKL) -> u32 {
assert_eq!(skl, SKL::Limited);
match self.end {
LinkEnd::Client => self.ordinary(key, SKL::Limited)?,