Add a micro-optmisation

This commit is contained in:
blank X 2021-06-21 19:51:40 +07:00
parent 445cac2d8f
commit d109e3f034
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 5 deletions

View File

@ -163,11 +163,6 @@ async fn async_main() {
match utils::get_videos(&rclient, i).await {
Ok(videos) => {
for j in videos {
{
if tmp_handled.lock().unwrap().contains(&j) {
continue;
}
}
if nodl {
let mut seen_videos = seen_videos.write().unwrap();
if !seen_videos.contains(&j) {
@ -175,6 +170,9 @@ async fn async_main() {
}
} else {
{
if tmp_handled.lock().unwrap().contains(&j) {
continue;
}
let seen_videos = seen_videos.read().unwrap();
if seen_videos.contains(&j) {
continue;