light(on_demand): decrease default time window to 10 secs (#10016)

* light(on_demand): decrease default time window to 10 secs

* light(on_demand): use secs units for cli options
This commit is contained in:
Andronik Ordian
2018-12-05 14:17:26 +03:00
committed by Wei Tang
parent 7fb33796b1
commit dc3b1ecdd0
4 changed files with 13 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ pub const DEFAULT_REQUEST_MIN_BACKOFF_DURATION: Duration = Duration::from_secs(1
/// The maximum request interval for OnDemand queries
pub const DEFAULT_REQUEST_MAX_BACKOFF_DURATION: Duration = Duration::from_secs(100);
/// The default window length a response is evaluated
pub const DEFAULT_RESPONSE_TIME_TO_LIVE: Duration = Duration::from_secs(60);
pub const DEFAULT_RESPONSE_TIME_TO_LIVE: Duration = Duration::from_secs(10);
/// The default number of maximum backoff iterations
pub const DEFAULT_MAX_REQUEST_BACKOFF_ROUNDS: usize = 10;
/// The default number failed request to be regarded as failure