Skip to content

Commit

Permalink
relocate comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopplerian committed Apr 15, 2024
1 parent 7ec0e79 commit 890531a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fang/src/asynk/backend_sqlx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ pub(crate) enum SqlXQuery {
InsertTaskIfNotExists,
}

// Unwraps by QueryParams are safe because the responsibility is of the caller
// and the caller is the library itself

use crate::AsyncQueueError;
use crate::AsyncRunnable;
use crate::FangTaskState;
Expand Down Expand Up @@ -174,6 +171,8 @@ where
pool: &Pool<DB>,
params: QueryParams<'_>,
) -> Result<Task, AsyncQueueError> {
// Unwraps by QueryParams are safe because the responsibility is of the caller
// and the caller is the library itself
let task_type = params.task_type.unwrap();

let now_str = format!("{}", Utc::now().format("%F %T%.f+00"));
Expand Down

0 comments on commit 890531a

Please sign in to comment.