diff --git a/config.json b/config.json index a98b2de..094334e 100644 --- a/config.json +++ b/config.json @@ -7,5 +7,6 @@ "tags": "#Bot //optional setting", "local_path": "./ //optional setting for local images", "log_level": "Info", - "use_syslog_style": true + "use_syslog_style": true, + "retry_time": 600 } \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index c13fe7e..fec945a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -953,7 +953,7 @@ fn main() { //Check if it's time to post new image if next_time < Local::now() - || (failed_to_post && (Instant::now() - failed_to_post_time).as_secs() > 60 * 10) + || (failed_to_post && (Instant::now() - failed_to_post_time).as_secs() > 60 * 2) // Try again in 2 minutes if posting failed { //Try again after 10min if failed let image = post_image(&app_config, &images, &mut not_used_images);