Overview
Comment: | bail for 5 minutes on error |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
37a0139d496a1042ee5896ee0fb819c9 |
User & Date: | arcade on 2024-05-26 09:20:03.955 |
Other Links: | manifest | tags |
Context
2024-06-11
| ||
18:39 | v0.2.1: bump, add rustls and some throttling check-in: ce79786e06 user: arcade tags: trunk | |
2024-05-26
| ||
09:20 | bail for 5 minutes on error check-in: 37a0139d49 user: arcade tags: trunk | |
09:17 | ver 0.2.0 - switching to Teloxide for now check-in: f4cad2a5c0 user: arcade tags: trunk | |
Changes
Modified src/main.rs
from [2e0e9ab78d]
to [bf2d049c4a].
︙ | ︙ | |||
292 293 294 295 296 297 298 | loop { // relay mails if let Err(err) = relay_mails(&maildir, &core).await { // in case that fails - inform default recipient if let Err(err) = core.debug(format!("Sending emails failed:\n{:?}", err)).await { // in case that also fails - write some logs and bail eprintln!("Failed to contact Telegram:\n{:?}", err); | < > | 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | loop { // relay mails if let Err(err) = relay_mails(&maildir, &core).await { // in case that fails - inform default recipient if let Err(err) = core.debug(format!("Sending emails failed:\n{:?}", err)).await { // in case that also fails - write some logs and bail eprintln!("Failed to contact Telegram:\n{:?}", err); }; task::sleep(Duration::from_secs(5 * 60)).await; }; task::sleep(Duration::from_secs(5)).await; } }); match listen_on.as_str() { "socket" => { |
︙ | ︙ |