Skip to content
Snippets Groups Projects
Commit 4a32bcd4 authored by Ian Jackson's avatar Ian Jackson
Browse files

Make DownloadScheduleBuilder "alternative" defaults pub(crate)

parent 4643e1dd
No related branches found
No related tags found
1 merge request!473DownloadSchedule: Introduce Builder
......@@ -51,7 +51,7 @@ pub struct DownloadSchedule {
impl DownloadScheduleBuilder {
/// Default value for retry_bootstrap in DownloadScheduleConfig.
pub fn build_retry_bootstrap(&self) -> Result<DownloadSchedule, ConfigBuildError> {
pub(crate) fn build_retry_bootstrap(&self) -> Result<DownloadSchedule, ConfigBuildError> {
let mut bld = self.clone();
bld.attempts.get_or_insert(128);
bld.initial_delay.get_or_insert_with(|| Duration::new(1, 0));
......@@ -60,7 +60,7 @@ impl DownloadScheduleBuilder {
}
/// Default value for microdesc_bootstrap in DownloadScheduleConfig.
pub fn build_retry_microdescs(&self) -> Result<DownloadSchedule, ConfigBuildError> {
pub(crate) fn build_retry_microdescs(&self) -> Result<DownloadSchedule, ConfigBuildError> {
let mut bld = self.clone();
bld.attempts.get_or_insert(3);
bld.initial_delay
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment