Skip to content

Commit

Permalink
Merge branch 'main' into errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi authored Apr 1, 2024
2 parents 7d0e6f0 + 88b0fba commit c8a94c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions uplink/src/base/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pub struct Action {
// action id
#[serde(alias = "id")]
pub action_id: String,
// determines if action is a process
pub kind: String,
// action name
pub name: String,
// action payload. json. can be args/payload. depends on the invoked command
Expand Down
4 changes: 2 additions & 2 deletions uplink/src/collector/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ impl FileDownloader {
loop {
match self.download(req, &mut download).await {
Ok(_) => break,
Err(Error::Reqwest(e)) => {
Err(Error::Reqwest(e)) if !e.is_status => {
let status = ActionResponse::progress(&self.action_id, "Download Failed", 0)
.set_sequence(self.sequence())
.add_error(e.to_string());
self.bridge_tx.send_action_response(status).await;
error!("Download failed: {e}");
}
},
Err(e) => return Err(e),
}
tokio::time::sleep(Duration::from_secs(1)).await;
Expand Down

0 comments on commit c8a94c0

Please sign in to comment.