From 4304b0f336ddba7b4ec6780795059ff2066d105b Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 17:33:17 +0000 Subject: comments: keep only what the code cannot show MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stripped every comment that described what an item does, documented its arguments or fields, or cited the design docs (§n, I-n, m-n, decision n). 2247 comments down to 83. What survives: the section dividers that segment the large modules, the secret-handling warnings, the agent wire-frame directions, and the few notes without which the code they attach to reads as redundant, reorderable, or unsound. --- src/watch/scheduler.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/watch/scheduler.rs') diff --git a/src/watch/scheduler.rs b/src/watch/scheduler.rs index 837a51a..eb79db0 100644 --- a/src/watch/scheduler.rs +++ b/src/watch/scheduler.rs @@ -6,7 +6,6 @@ use crate::config::Config; use crate::db::{self, Db}; use crate::watch::detect::check_pkgbase; -/// Spawn the watcher tick thread. pub fn spawn_scheduler(cfg: Arc, db: Db, stop: Arc) -> JoinHandle<()> { std::thread::Builder::new() .name("watcher".into()) @@ -14,7 +13,6 @@ pub fn spawn_scheduler(cfg: Arc, db: Db, stop: Arc) -> JoinH while !stop.load(Ordering::SeqCst) { let tick = crate::db::setting_i64(&db, "poll_tick", 30); sweep(&cfg, &db); - // Sleep in small slices so shutdown is prompt. let mut slept = 0; while slept < tick && !stop.load(Ordering::SeqCst) { std::thread::sleep(std::time::Duration::from_secs(1)); @@ -25,7 +23,6 @@ pub fn spawn_scheduler(cfg: Arc, db: Db, stop: Arc) -> JoinH .expect("spawn watcher") } -/// One sweep over everything that is due. pub fn sweep(cfg: &Config, db: &Db) -> usize { let now = crate::time::now(); let due = match db::due_subscriptions(db, &now) { -- cgit v1.2.3