wip(#3001): rename insert -> insert_job per mara's 50056
This commit is contained in:
parent
102ebdc03d
commit
fe52037b0d
7 changed files with 24 additions and 27 deletions
|
|
@ -50,7 +50,7 @@ pub(super) async fn post_rebuild(
|
|||
if let Some(reject) = guard_agent_name(&state, &logical).await {
|
||||
return reject;
|
||||
}
|
||||
if let Err(e) = state.coord.job_queue.insert(|b| {
|
||||
if let Err(e) = state.coord.job_queue.insert_job(|b| {
|
||||
crate::job_queue::templates::rebuild(b, &logical, true);
|
||||
Vec::new()
|
||||
}) {
|
||||
|
|
@ -399,7 +399,7 @@ pub(super) async fn post_update_all(State(state): State<AppState>) -> Response {
|
|||
else {
|
||||
continue;
|
||||
};
|
||||
if let Err(e) = state.coord.job_queue.insert(|b| {
|
||||
if let Err(e) = state.coord.job_queue.insert_job(|b| {
|
||||
crate::job_queue::templates::rebuild(b, &logical, true);
|
||||
Vec::new()
|
||||
}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue