Skip to main content

check_timeouts

Function check_timeouts 

Source
pub fn check_timeouts(config: &Config) -> Result<(), AppError>
Expand description

Checks that query_timeout and lease_period are shorter than loop_stall_timeout, so one hung query doesn’t look like a stuck loop, and a stuck master doesn’t lead past its restart.

§Errors

AppError::BadArgument when it isn’t.