Record origin changes and show them on the prefix page (closes #161) #231

Merged
clawbot merged 6 commits from issue-161-origin-changes into next 2026-11-05 06:57:42 +01:00
Showing only changes of commit 5ce3d152e3 - Show all commits
@@ -14,10 +14,6 @@ import (
"git.eeqj.de/sneak/routewatch/internal/routetable"
)
// waitingOriginChangesLimit is the routing table's maxWaitingOriginChanges,
// which this package cannot read.
const waitingOriginChangesLimit = 100000
// TestPrefixHandlerWritesOriginChanges hands a running prefix handler an
// announcement and flushes. The flush must write the origin change to the
// database.
@@ -149,7 +145,7 @@ func TestPrefixHandlerLogsTheDroppedOriginChanges(t *testing.T) {
&slog.HandlerOptions{Level: slog.LevelWarn})),
}
announceManyPrefixes(h.table, waitingOriginChangesLimit+1)
announceManyPrefixes(h.table, routetable.MaxWaitingOriginChanges+1)
h.flushBatch()