hammond-data: Index_loop does not wait for GET request to finish now.

This commit is contained in:
Jordan Petridis
2017-12-26 18:18:48 +02:00
parent 41abeeb2e3
commit bfb74c4dba
4 changed files with 43 additions and 80 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ use rayon::prelude::*;
use test::Bencher;
use hammond_data::Source;
use hammond_data::feed::{index, Feed};
use hammond_data::feed::*;
use std::io::BufReader;
@@ -43,7 +43,7 @@ fn index_urls() {
})
.collect();
index(feeds);
feeds.par_iter().for_each(|x| index(x));
}
#[bench]