querylog: the writer queue defaults to 1024 entries, and a live stream allocates its ring on subscribe instead of at boot

This commit is contained in:
2026-10-21 22:38:53 +02:00
parent 0cafd770c1
commit d951d03b7d
12 changed files with 234 additions and 129 deletions
+4 -4
View File
@@ -4281,9 +4281,9 @@ test "the sink both streams and logs the query the handler answered" {
defer t.deinit();
const io = t.io();
const hub = try testing.allocator.create(sse.Hub);
defer testing.allocator.destroy(hub);
hub.init();
var hub_storage: sse.Hub = .init(testing.allocator);
defer hub_storage.deinit();
const hub = &hub_storage;
var queue_buf: [4]logger_mod.Entry = undefined;
var lg: logger_mod.Logger = .init(.{}, &queue_buf);
@@ -4295,7 +4295,7 @@ test "the sink both streams and logs the query the handler answered" {
var h = bare(h_owner.client(fake.client()));
h.sink = &sink;
const id = hub.subscribe(io).?;
const id = try hub.subscribe(io);
defer hub.unsubscribe(io, id);
var buf: [udp_limit_min]u8 = undefined;