impl_standard_builder: Use for tor_dirmgr::DownloadScheduleConfig
This commit is contained in:
parent
2ab5c0861e
commit
8b724d40f8
|
@ -129,20 +129,7 @@ pub struct DownloadScheduleConfig {
|
||||||
pub(crate) retry_microdescs: DownloadSchedule,
|
pub(crate) retry_microdescs: DownloadSchedule,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for DownloadScheduleConfig {
|
impl_standard_builder! { DownloadScheduleConfig }
|
||||||
fn default() -> Self {
|
|
||||||
Self::builder()
|
|
||||||
.build()
|
|
||||||
.expect("default builder setting didn't work")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl DownloadScheduleConfig {
|
|
||||||
/// Return a new builder to make a [`DownloadScheduleConfig`]
|
|
||||||
pub fn builder() -> DownloadScheduleConfigBuilder {
|
|
||||||
DownloadScheduleConfigBuilder::default()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Configuration for how much clock skew to tolerate in our directory information
|
/// Configuration for how much clock skew to tolerate in our directory information
|
||||||
#[derive(Debug, Clone, Builder, Eq, PartialEq)]
|
#[derive(Debug, Clone, Builder, Eq, PartialEq)]
|
||||||
|
|
Loading…
Reference in New Issue