Commit Graph
4 Commits
Author SHA1 Message Date
binwiederhier e6b97f524a Pass the store to limit.New and topic.New instead of a one-field Config 2026-11-01 18:29:46 +00:00
binwiederhier 582cae9f4c Simplify the topic service: one pending-rows map, one flat State row, a synchronous startup load
A refused push's Note returns the topic's state for the publish path, prune forgets unwritten
changes along with the topic, and SetForTest is gone: tests age rows in the database.
2026-11-01 15:16:30 +00:00
binwiederhier abcfd88cd8 Rename topic.Topic to topic.State, so the live topic can take the name later
The package comment now says the server's live topics are meant to move into the topic package.
2026-10-31 18:29:29 +00:00
binwiederhier 6ae42e7590 Add the topic package: per-topic cluster-wide state synced through the topic table
One row per topic (first_seen_at, subscribed_at, rate visitor user and IP,
updated_at), merged by rule (earliest, latest, last written) so the nodes can
write in any order, synced by the package's own 5 s worker from a dirty set.
User schema 10 -> 11 now creates this table.
2026-10-31 13:51:38 +00:00