Fix and add documentation

This commit is contained in:
Joscha 2023-08-13 01:11:31 +02:00
parent 0bad08eca9
commit 08e240d7db
3 changed files with 7 additions and 6 deletions

View file

@ -91,7 +91,7 @@ impl Workers {
}
pub fn should_abort_work(&self, name: &str, queue: &[String]) -> bool {
// A runner should abort work if...
// A worker should abort work if...
let Some(info) = self.workers.get(name) else { return false; };
let WorkerStatus::Working (unfinished) = &info.status else { return false; };
@ -100,7 +100,7 @@ impl Workers {
return true;
}
// Another runner has been working on the same commit for longer
// Another worker has been working on the same commit for longer
let oldest_working_on_commit = self
.workers
.iter()