From a1bb54f668f0dd7485d100cdf87b5d1a40d68e6c Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Wed, 15 Nov 2023 19:34:53 +0100 Subject: [PATCH] new: increased default timeout and decreased default retries to address cases like #20 --- src/options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.rs b/src/options.rs index 8292b4f..65bdb1d 100644 --- a/src/options.rs +++ b/src/options.rs @@ -48,10 +48,10 @@ pub(crate) struct Options { #[clap(long, value_enum, default_value_t = session::loot::OutputFormat::Text)] pub output_format: session::loot::OutputFormat, /// Connection timeout in milliseconds. - #[clap(long, default_value_t = 1000)] + #[clap(long, default_value_t = 10000)] pub timeout: u64, /// Number of attempts if a request fails. - #[clap(long, default_value_t = 10)] + #[clap(long, default_value_t = 5)] pub retries: usize, /// Delay in milliseconds to wait before a retry. #[clap(long, default_value_t = 1000)]