diff --git a/src/main.rs b/src/main.rs index 007d936..d328b33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,7 +81,7 @@ lazy_static! { static ref HANDLES: MaxHandles = MaxHandles::new(20); } -fn get_url(url: String) -> BoxFuture<'static, (String, Result)> { +fn get_url(url: String) -> BoxFuture<'static, (String, Result<(), CheckerError>)> { async move { let _handle = HANDLES.get().await; let mut res = Err(CheckerError::NotTried); @@ -98,7 +98,7 @@ fn get_url(url: String) -> BoxFuture<'static, (String, Result { + Ok(ok) => { let status = ok.status(); if status != StatusCode::OK { lazy_static! { @@ -143,15 +143,16 @@ fn get_url(url: String) -> BoxFuture<'static, (String, Result