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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4eb0fb9 commit 9ce55c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/svix-server/src/expired_message_cleaner.rs
Original file line number Diff line number Diff line change
@@ -67,8 +67,7 @@ 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 {
match clean_expired_messages(pool, BATCH_SIZE).await {
Err(err) => {
tracing::error!("{}", err);
}

0 comments on commit 9ce55c6

Please sign in to comment.