From 4953e085623a2639c54b4c19fc63473d80cba11a Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 23 Jan 2025 18:31:27 +0100 Subject: [PATCH] Clarify that VerifyEmailJob is kept for flushing old jobs --- crates/storage/src/queue/tasks.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/storage/src/queue/tasks.rs b/crates/storage/src/queue/tasks.rs index 0beca30c6..3e3eec5e6 100644 --- a/crates/storage/src/queue/tasks.rs +++ b/crates/storage/src/queue/tasks.rs @@ -1,4 +1,4 @@ -// Copyright 2024 New Vector Ltd. +// Copyright 2024, 2025 New Vector Ltd. // // SPDX-License-Identifier: AGPL-3.0-only // Please see LICENSE in the repository root for full details. @@ -9,7 +9,9 @@ use ulid::Ulid; use super::InsertableJob; -/// A job to verify an email address. +/// This is the previous iteration of the email verification job. It has been +/// replaced by [`SendEmailAuthenticationCodeJob`]. This struct is kept to be +/// able to consume jobs that are still in the queue. #[derive(Serialize, Deserialize, Debug, Clone)] pub struct VerifyEmailJob { user_email_id: Ulid,