Skip to content

Commit fd03865

Browse files
committed
chore: update comment
1 parent af6b1b3 commit fd03865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/worker/jobs/expiry_notification.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ impl BackgroundJob for ExpiryNotification {
2525
#[instrument(skip(env), err)]
2626
async fn run(&self, env: Self::Context) -> anyhow::Result<()> {
2727
let mut conn = env.connection_pool.get()?;
28-
// Check if the token is expired
29-
// If the token is expired, trigger a notification
28+
// Check if the token is about to expire
29+
// If the token is about to expire, trigger a notification
3030
check(&env.emails, &mut conn)
3131
}
3232
}
3333

34-
// Check if the token is expired and trigger a notification if it is.
34+
// Check if the token is about to expire and send a notification if it is.
3535
fn check(emails: &Emails, conn: &mut PgConnection) -> anyhow::Result<()> {
3636
info!("Checking if tokens are expired");
3737
let expired_tokens =

0 commit comments

Comments
 (0)