summaryrefslogtreecommitdiffstats
path: root/src/usecase/detect.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-23 13:44:20 +0000
committeraur-build <aur-build@localhost>2026-11-23 13:44:20 +0000
commit4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (patch)
treec61c2274e3810669cef8319cf9980cbbe031f840 /src/usecase/detect.rs
parent053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (diff)
downloadaur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.tar.gz
aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.zip
usecase,http,pipeline,ops: keep the contract, drop the argument
A workflow's doc now says what it guarantees and stops defending its existence: `subscribe` resolves the repo row, `approve` queues what the approval buys, a per-item failure comes back as a value instead of a panic. The history of which front end used to open-code it is gone. The last census-war notes go with it — three places that explained why a name in a test string was not a caller.
Diffstat (limited to 'src/usecase/detect.rs')
-rw-r--r--src/usecase/detect.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/usecase/detect.rs b/src/usecase/detect.rs
index 67cc83c..42f98d9 100644
--- a/src/usecase/detect.rs
+++ b/src/usecase/detect.rs
@@ -5,12 +5,8 @@ use crate::db::{self, Db, SubscriptionState};
use crate::error::Result;
use crate::watch::detect::{self, Outcome};
-/// One pkgbase's detection result.
-///
-/// Per-item failures are returned rather than raised: a sweep over every
-/// subscription should not stop at the first pkgbase whose mirror is
-/// unreachable, and the caller decides whether a failure is a line on stderr
-/// or a row in a table.
+/// One pkgbase's detection result. Per-item failures are returned, not raised,
+/// so a sweep does not stop at the first unreachable mirror.
pub struct Checked {
pub pkgbase: String,
pub outcome: Result<Outcome>,