Skip to content

Commit

Permalink
add attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
vladjdk committed Jan 15, 2024
1 parent cbd4d92 commit 5e5bf50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/warp-controller/src/execute/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ pub fn migrate_pending_jobs(
)?;
}

Ok(Response::new())
Ok(Response::new()
.add_attribute("refreshed_finished_jobs", job_keys.len().to_string()))

Check failure on line 151 in contracts/warp-controller/src/execute/controller.rs

View workflow job for this annotation

GitHub Actions / Test

borrow of moved value: `job_keys`
}

pub fn migrate_finished_jobs(
Expand Down Expand Up @@ -179,5 +180,6 @@ pub fn migrate_finished_jobs(
)?;
}

Ok(Response::new())
Ok(Response::new()
.add_attribute("refreshed_finished_jobs", job_keys.len().to_string()))

Check failure on line 184 in contracts/warp-controller/src/execute/controller.rs

View workflow job for this annotation

GitHub Actions / Test

borrow of moved value: `job_keys`
}

0 comments on commit 5e5bf50

Please sign in to comment.