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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user