aboutsummaryrefslogtreecommitdiff
path: root/src/mail/incoming.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-16 18:27:24 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-16 18:27:24 +0100
commit6da8b815b694a37d39a2be04c8e1585aac17954a (patch)
treec9df6389e4272e91de9131a8fbf2b8fe6df3eaf0 /src/mail/incoming.rs
parent916b27d87ec7f5bff41f9dd888914d50ae067fc0 (diff)
downloadaerogramme-6da8b815b694a37d39a2be04c8e1585aac17954a.tar.gz
aerogramme-6da8b815b694a37d39a2be04c8e1585aac17954a.zip
not very clear how we pass data across channel
Diffstat (limited to 'src/mail/incoming.rs')
-rw-r--r--src/mail/incoming.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/incoming.rs b/src/mail/incoming.rs
index c3a9390..9899ae8 100644
--- a/src/mail/incoming.rs
+++ b/src/mail/incoming.rs
@@ -81,7 +81,7 @@ async fn incoming_mail_watch_process_internal(
tokio::select! {
inc_k = wait_new_mail => Some(inc_k),
- _ = tokio::time::sleep(MAIL_CHECK_INTERVAL) => Some(incoming_key.clone()),
+ _ = tokio::time::sleep(MAIL_CHECK_INTERVAL) => Some(incoming_key),
_ = lock_held.changed() => None,
_ = rx_inbox_id.changed() => None,
}