summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-02-02 09:15:01 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-02-02 09:19:19 +0100
commit061c4d43cc028d41a13d13f101eec2dbceea0d78 (patch)
treec8da9f795a330a7795f1c5892a9508d5efe8ca1e /src
parent1fa80f315d801e0b2ee81425728694a420072903 (diff)
Fix: fn does not have to be async
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src')
-rw-r--r--src/job/runnable.rs2
-rw-r--r--src/orchestrator/orchestrator.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/job/runnable.rs b/src/job/runnable.rs
index 7bfabae..f91de5b 100644
--- a/src/job/runnable.rs
+++ b/src/job/runnable.rs
@@ -52,7 +52,7 @@ pub struct RunnableJob {
}
impl RunnableJob {
- pub async fn build_from_job(
+ pub fn build_from_job(
job: &Job,
source_cache: &SourceCache,
config: &Configuration,
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs
index b99767e..7220c9a 100644
--- a/src/orchestrator/orchestrator.rs
+++ b/src/orchestrator/orchestrator.rs
@@ -460,8 +460,7 @@ impl<'a> JobTask<'a> {
&self.jobdef.job,
self.source_cache,
self.config,
- dependency_artifacts)
- .await?;
+ dependency_artifacts)?;
self.bar.set_message(&format!("[{} {} {}]: Scheduling...",
self.uuid,