From 8cb139c1b8c4096d36595a438927170f0e9db93a Mon Sep 17 00:00:00 2001 From: Cheick Keita Date: Thu, 28 Jan 2021 14:58:01 -0800 Subject: [PATCH 1/2] return an error when download_input fails --- src/agent/onefuzz-agent/src/tasks/utils.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agent/onefuzz-agent/src/tasks/utils.rs b/src/agent/onefuzz-agent/src/tasks/utils.rs index 3384de15ba..1b44e146f3 100644 --- a/src/agent/onefuzz-agent/src/tasks/utils.rs +++ b/src/agent/onefuzz-agent/src/tasks/utils.rs @@ -13,7 +13,10 @@ pub async fn download_input(input_url: Url, dst: impl AsRef) -> Result Date: Thu, 28 Jan 2021 15:41:08 -0800 Subject: [PATCH 2/2] build fix --- src/agent/onefuzz-agent/src/tasks/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/onefuzz-agent/src/tasks/utils.rs b/src/agent/onefuzz-agent/src/tasks/utils.rs index 1b44e146f3..37d3ad55f9 100644 --- a/src/agent/onefuzz-agent/src/tasks/utils.rs +++ b/src/agent/onefuzz-agent/src/tasks/utils.rs @@ -3,7 +3,7 @@ use anyhow::Result; use async_trait::async_trait; -use onefuzz::jitter::delay_with_jitter; +use onefuzz::{http::ResponseExt, jitter::delay_with_jitter}; use reqwest::Url; use std::path::{Path, PathBuf}; use std::time::Duration;