Skip to content

Commit

Permalink
remove redundant clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Jul 27, 2022
1 parent 067ddd1 commit be5d28e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bot/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ impl Handler {
let db_pool = connection_pool.clone();
let tg_api = api.clone();

thread_pool.spawn(move || {
Self::process_message_or_channel_post(db_pool.clone(), tg_api.clone(), update)
});
thread_pool
.spawn(move || Self::process_message_or_channel_post(db_pool, tg_api, update));
}

thread::sleep(interval);
Expand Down

0 comments on commit be5d28e

Please sign in to comment.