Skip to content

Commit 7020290

Browse files
committed
fix some minor nits
1 parent 5400248 commit 7020290

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

script/ci/prune-cache.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ du -hs target/debug
77

88
crate_name="cargo-registry"
99
test_name="all"
10-
bin_names="delete-crate delete-version populate render-readmes server test-pagerduty transfer-crates update-downloads"
10+
bin_names="delete-crate delete-version populate render-readmes server test-pagerduty transfer-crates update-downloads background-worker monitor"
1111

1212
normalized_crate_name=${crate_name//-/_}
1313
rm -v target/debug/$normalized_crate_name-*

src/background/storage.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub fn find_next_unlocked_job(conn: &PgConnection) -> QueryResult<BackgroundJob>
5050
.first::<BackgroundJob>(conn)
5151
}
5252

53-
/// The number of jobs available to be run
53+
/// The number of jobs that have failed at least once
5454
pub fn failed_job_count(conn: &PgConnection) -> QueryResult<i64> {
5555
use crate::schema::background_jobs::dsl::*;
5656

@@ -60,7 +60,7 @@ pub fn failed_job_count(conn: &PgConnection) -> QueryResult<i64> {
6060
.get_result(conn)
6161
}
6262

63-
/// The number of jobs that have failed at least once
63+
/// The number of jobs available to be run
6464
pub fn available_job_count(conn: &PgConnection) -> QueryResult<i64> {
6565
use crate::schema::background_jobs::dsl::*;
6666

0 commit comments

Comments
 (0)