Skip to content

Commit

Permalink
Remove totally unnecessary DatabaseConnection clone
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-gabriel committed Nov 9, 2023
1 parent 4eb0fb9 commit e90badf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/svix-server/src/expired_message_cleaner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ pub async fn expired_message_cleaner_loop(pool: &DatabaseConnection) -> Result<(
if let Some(duration) = sleep_time {
sleep(duration).await;
}
let pool = pool.clone();
match clean_expired_messages(&pool, BATCH_SIZE).await {
Err(err) => {
tracing::error!("{}", err);
Expand Down

0 comments on commit e90badf

Please sign in to comment.