about summary refs log tree commit diff stats
path: root/src/config/history.nim
Commit message (Collapse)AuthorAgeFilesLines
* history: simplify a bitbptato2025-04-301-21/+12
|
* history, cookie: fsync before renamebptato2025-03-061-2/+4
| | | | | In theory, it is possible for rename to succeed before the buffers are flushed, and then we lose data.
* dynstream: remove exceptionsbptato2025-02-261-21/+20
| | | | | | | | | | | | | Now we just pass down the value of n and check errno, plus readDataLoop/writeDataLoop returns a bool indicating whether it failed. For now this seems to work OK, but maybe I'll add a better abstraction in the future. EOFError is still used for handling failed packets; this is brittle, and should be replaced once we have a proper buffering mechanism for them. (That will also let us kill BufStream.) Unrelated: this also fixes a bug in buffer with cacheId.
* Add annotations for move semanticsbptato2025-01-221-1/+1
| | | | | | | | | Supposedly they aren't broken in refc after 2.0.0, so we can do this now that 1.6.14 is dropped. I've confirmed lent to work as advertised; it indeed reduces copies. sink doesn't seem to help much, but I guess it will be useful once we switch to ORC.
* history: remove comment parsing, fix fd leakbptato2024-12-291-8/+7
|
* history: fix entry droppingbptato2024-12-221-0/+2
| | | | | next's pointer backwards must be updated too, or it the dropped ref will be erroneously displayed on the history screen.
* Add historybptato2024-12-171-0/+127
It's still missing a "color visited links" feature, but it's better than nothing.