aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/files.go
AgeCommit message (Collapse)AuthorFilesLines
28 hoursfix: close the review nits in the write path, query path and testsDanilo M.1-3/+12
Remove the temp file on every writeJSON failure path, not just the write and close ones. A failed rename left the temp behind with no cleanup. Surface the list path's unmarshal error instead of printing null with exit 0, and make a non-positive history limit print an empty array rather than falling through to the whole ring. Assert the evicted item actually lands in the history ring, so the "files to history" half of eviction is covered rather than just its signal. Add the missing README License section beside the GPLv2 text and headers.
28 hoursfeat: publish the queue and history atomicallyDanilo M.1-0/+67
Both files are written whole through a temporary file and a rename, so a renderer never reads a half-written value. An empty queue is [] rather than null, because the renderer parses it as an array.