Check-in [37a0139d49]
Logged in as anonymous
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: 37a0139d496a1042ee5896ee0fb819c9f4130110155eacc3543cfeb81c03b2a9
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
292
293
294
295
296
297
298
299
300

301
302
303
304
305
306
307
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 * 60)).await;
			};
			task::sleep(Duration::from_secs(5)).await;
		}
	});

	match listen_on.as_str() {
		"socket" => {