Upgrade dependancies.

This commit is contained in:
Jordan Petridis
2018-01-22 11:47:17 +02:00
parent 66e816fc5f
commit 7bd361fbbb
5 changed files with 107 additions and 101 deletions
+4
View File
@@ -2,6 +2,7 @@
//! Docs.
use futures::future::*;
// use futures_cpupool::CpuPool;
// use futures::prelude::*;
use hyper::Client;
@@ -17,6 +18,7 @@ use models::{IndexState, NewEpisode, NewEpisodeMinimal};
// use Feed;
use std;
// use std::sync::{Arc, Mutex};
/// The pipline to be run for indexing and updating a Podcast feed that originates from
/// `Source.uri`.
@@ -25,6 +27,8 @@ use std;
/// Source -> GET Request -> Update Etags -> Check Status -> Parse xml/Rss ->
/// Convert `rss::Channel` into Feed -> Index Podcast -> Index Episodes.
pub fn pipeline<S: IntoIterator<Item = Source>>(sources: S, ignore_etags: bool) -> Result<()> {
// let _pool = CpuPool::new_num_cpus();
let mut core = Core::new()?;
let handle = core.handle();
let client = Client::configure()