Update dependencies #5

Merged
phoenix merged 7 commits from update_dependencies into main 2026-06-07 16:02:46 -04:00
Showing only changes of commit b105c1aa88 - Show all commits
+2 -5
View File
@@ -9,9 +9,8 @@ pub async fn send_messages(
second_interval: u64,
) {
let long_sleep_limit: i64 = 5;
let mut count: i64 = 0;
for contact in contacts.iter() {
for (text_count, contact) in (0_i64..).zip(contacts.iter()) {
println!("Sending to: {:?}", contact.phone_number);
let param = swoosh::twilio::types::Parameters {
schedule: false,
@@ -28,7 +27,7 @@ pub async fn send_messages(
}
}
if count % long_sleep_limit == 0 {
if text_count % long_sleep_limit == 0 {
// Sleep for X seconds
let wait_time = second_interval;
std::thread::sleep(std::time::Duration::from_secs(wait_time));
@@ -36,8 +35,6 @@ pub async fn send_messages(
// Sleep for a second
std::thread::sleep(std::time::Duration::from_secs(1));
}
count += 1;
}
}