idle: add a grace period
This commit is contained in:
parent
1ad3d11616
commit
e8be15a26c
29 changed files with 405 additions and 79 deletions
|
|
@ -177,7 +177,10 @@ impl ActionParser<'_> {
|
|||
.extract(val("idle"))?
|
||||
.parse_map(&mut IdleParser(self.0))
|
||||
.map_spanned_err(ActionParserError::ConfigureIdle)?;
|
||||
Ok(Action::ConfigureIdle { idle })
|
||||
Ok(Action::ConfigureIdle {
|
||||
idle: idle.timeout,
|
||||
grace_period: idle.grace_period,
|
||||
})
|
||||
}
|
||||
|
||||
fn parse_configure_output(&mut self, ext: &mut Extractor<'_>) -> ParseResult<Self> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue