Add different http timeout for debug

This commit is contained in:
Paul Hauner
2019-11-22 19:51:52 +11:00
parent d6c025f111
commit be7346d3ea

View File

@@ -22,6 +22,11 @@ use url::Url;
pub use rest_api::{BulkValidatorDutiesRequest, HeadResponse, ValidatorDuty};
// Setting a long timeout for debug ensures that crypto-heavy operations can still succeed.
#[cfg(debug_assertions)]
pub const REQUEST_TIMEOUT_SECONDS: u64 = 15;
#[cfg(not(debug_assertions))]
pub const REQUEST_TIMEOUT_SECONDS: u64 = 5;
#[derive(Clone)]