Tweak import paths

Group together all cookie imports in agent.rs; consistently use `Duration`.
This commit is contained in:
Jacob Hoffman-Andrews
2020-10-25 15:02:57 -07:00
parent 0cfa06c80c
commit 72e7e06334
2 changed files with 12 additions and 20 deletions

View File

@@ -58,7 +58,7 @@ fn get_and_write(agent: &ureq::Agent, url: &String) -> Result<()> {
fn get_many(urls: Vec<String>, simultaneous_fetches: usize) -> Result<()> {
let agent = ureq::builder()
.timeout_connect(std::time::Duration::from_secs(5))
.timeout_connect(Duration::from_secs(5))
.timeout(Duration::from_secs(20))
.build();
let pool = rayon::ThreadPoolBuilder::new()