Trim comments across Rust and webapp source to direct one-liners (ticket 030)
Pass over src/*.rs, webapp/src/**, and the in-app "?" docs prose: condensed multi-paragraph doc comments to single lines that state the non-obvious why, deleted comments that only restated adjacent code, and tightened the Docs.tsx help-panel wording. No logic, structure, or code formatting changed — verified via cargo test (143 passed) and tsc -b && vite build. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFUNZwCvz3kcod3352ZR2o
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
3cef6dc8ae
commit
00c21c8032
+4
-12
@@ -31,14 +31,11 @@ struct Args {
|
||||
#[arg(long, default_value_t = 0)]
|
||||
port: u16,
|
||||
|
||||
/// Path to the settings file. Defaults to a per-OS config location
|
||||
/// (e.g. `~/.config/ottyl/settings.json` on Linux).
|
||||
/// Path to the settings file. Defaults to a per-OS config location.
|
||||
#[arg(long)]
|
||||
settings_path: Option<PathBuf>,
|
||||
|
||||
/// File to tail for log lines, instead of reading from stdin. Behaves like
|
||||
/// `tail -f`: reads existing content then keeps following appended lines,
|
||||
/// and keeps tailing if the file is deleted/recreated at the same path.
|
||||
/// File to tail for log lines, instead of reading from stdin. Behaves like `tail -f`.
|
||||
#[arg(long)]
|
||||
file: Option<PathBuf>,
|
||||
}
|
||||
@@ -60,13 +57,8 @@ async fn main() {
|
||||
let _ = engine_tx.send(engine::EngineMessage::SetMaxLogs(max_logs)).await;
|
||||
}
|
||||
|
||||
// Ticket 009: reload the active profile's param/metric declarations into the
|
||||
// engine BEFORE starting ingest below. Ordering matters: declarations must be
|
||||
// in place before any line is ingested so that backfill/live-derivation
|
||||
// semantics (ticket 003) apply uniformly to every line, including ones that
|
||||
// arrive immediately once ingest starts (there's no "declare after the fact
|
||||
// and go back to reprocess early lines" step, so doing it after ingest starts
|
||||
// could silently miss lines that raced ahead of the declarations).
|
||||
// Reload the active profile's declarations before ingest starts: there's no way to
|
||||
// reprocess early lines later, so declaring after ingest starts could miss lines that raced ahead.
|
||||
{
|
||||
let (active_profile_name, profiles_dir) = {
|
||||
let mut settings_guard = settings.lock().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user