Skip to content

Commit 668ea34

Browse files
committed
feat(deploy-queue): Fixed clippy errors
1 parent ffd1ec2 commit 668ea34

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

deploy-queue/src/handler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async fn cancel_stale_heartbeat_deployments(
5555
deployment.component,
5656
deployment.version.as_deref().unwrap_or("unknown"),
5757
deployment.time_since_heartbeat.format_human(),
58-
deployment.heartbeat_timestamp.to_string(),
58+
deployment.heartbeat_timestamp,
5959
);
6060

6161
cancel::deployment(client, deployment.id, Some(cancellation_note.as_str())).await?;

deploy-queue/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ pub async fn run_deploy_queue(mode: cli::Mode, skip_migrations: bool) -> Result<
2727
.await
2828
.context("Faild to enqueue deployment")?;
2929

30-
// Start heartbeat loop in the background so we can abort it after starting
31-
let heartbeat_handle = handler::start_heartbeat_background(&db_client, deployment_id);
30+
handler::start_heartbeat_background(&db_client, deployment_id);
3231

3332
// Wait for all blocking deployments to finish
3433
handler::wait_for_blocking_deployments(&db_client, deployment_id)

0 commit comments

Comments
 (0)