Add a micro-optmisation
This commit is contained in:
parent
445cac2d8f
commit
d109e3f034
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue