use Duration() for http_retry_wait for nicer handling of units

pull/818/head
Peter Hanecak 2024-02-16 13:29:38 +01:00
rodzic 8377e61e82
commit f8679b26b8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 8DFCA0FEBE229DE2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ public record PlanetilerConfig(
String httpUserAgent,
Duration httpTimeout,
int httpRetries,
long httpRetryWait,
Duration httpRetryWait,
long downloadChunkSizeMB,
int downloadThreads,
double downloadMaxBandwidth,
@ -167,7 +167,7 @@ public record PlanetilerConfig(
"Planetiler downloader (https://github.com/onthegomap/planetiler)"),
arguments.getDuration("http_timeout", "Timeout to use when downloading files over HTTP", "30s"),
arguments.getInteger("http_retries", "Retries to use when downloading files over HTTP", 1),
arguments.getLong("http_retry_wait", "How long (in milliseconds) to wait before retrying HTTP request", 5_000),
arguments.getDuration("http_retry_wait", "How long (in milliseconds) to wait before retrying HTTP request", "5s"),
arguments.getLong("download_chunk_size_mb", "Size of file chunks to download in parallel in megabytes", 100),
arguments.getInteger("download_threads", "Number of parallel threads to use when downloading each file", 1),
Parse.bandwidth(arguments.getString("download_max_bandwidth",