summaryrefslogtreecommitdiffstats
path: root/src/http/sse.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-19 17:09:59 +0000
committeraur-build <aur-build@localhost>2026-11-19 17:09:59 +0000
commite757979f1a2afdbe7146066345bb9acd19d3b151 (patch)
tree30d5f5fbccd25ea7bf01c5202684af463b74e7d3 /src/http/sse.rs
parent94c318f13264bb3c00a9f3057ba2e1aafb57c9e4 (diff)
downloadaur-build-e757979f1a2afdbe7146066345bb9acd19d3b151.tar.gz
aur-build-e757979f1a2afdbe7146066345bb9acd19d3b151.zip
comments: say why, not what
Every module-level `//!` header is gone, and the comments that remained either re-explained the line below them or had grown into paragraphs. Density went from one comment line per 6.7 lines of code to one per 10. 827 insertions against 2194 deletions across 86 files. What survived: the invariants (I1-I12), the design cross-references into DESIGN.md, and the notes recording a bug that was found and fixed — those are the comments that carry weight, because they answer a question the code cannot answer about itself. What did not: restating a function signature in prose, and narration of the statement underneath.
Diffstat (limited to 'src/http/sse.rs')
-rw-r--r--src/http/sse.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/http/sse.rs b/src/http/sse.rs
index 5bfb75b..561de33 100644
--- a/src/http/sse.rs
+++ b/src/http/sse.rs
@@ -1,15 +1,3 @@
-//! The live log tail (§13): `GET /builds/:id/log.stream` as server-sent events.
-//!
-//! This is a blocking `std::io::Read` polled by the connection's thread, which is
-//! exactly the shape §14 asks for — no async runtime, no timer wheel. The
-//! pipeline appends to a plain file, so "streaming the log" means noticing that
-//! the file grew and forwarding the new bytes. Nothing in the build path knows
-//! this reader exists, which is what makes it safe to have at all: a client that
-//! disconnects, hangs or never connects cannot slow a build by a microsecond.
-//!
-//! The stream ends when the build reaches a terminal state and the file has no
-//! more bytes, so a browser tab does not hold a connection open forever.
-
use std::io::{self, Read};
use std::path::{Path, PathBuf};
use std::time::{Duration, Instant};