Mercurial > crates > nonstick
diff pam-http/src/lib.rs @ 19:d654aa0655e5
Making PamHandle a struct with methods
author | Anthony Nowell <anthony@algorithmia.com> |
---|---|
date | Mon, 25 Sep 2017 23:42:35 -0600 |
parents | 27730595f1ea |
children | 734ca62159fb |
line wrap: on
line diff
--- a/pam-http/src/lib.rs Sun Sep 24 22:11:05 2017 -0600 +++ b/pam-http/src/lib.rs Mon Sep 25 23:42:35 2017 -0600 @@ -65,7 +65,7 @@ } fn get_url(url: &str, user: &str, password: Option<&str>) -> reqwest::Result<StatusCode> { - let client = Client::builder()?.timeout(Duration::from_secs(5)).build()?; + let client = Client::builder()?.timeout(Duration::from_secs(15)).build()?; client.get(url)? .basic_auth(user, password) .send()