don't store network in CorsGate

This commit is contained in:
Muki Kiboigo committed 2026-09-04 06:59:38 -07:00
1 parent cf37a94f16
commit f31b32ac4e
2 files changed
+1 -5

No files matched your search

-1
View File
@@ -33,7 +33,6 @@ const Allocator = std.mem.Allocator;
const CorsGate = @This();
network: *Network,
single_flight: SingleFlight,
// CORS Request Headers
+1 -4
View File
@@ -237,10 +237,7 @@ pub fn init(self: *Client, app: *lp.App) !void {
.network = network,
.single_flight = .init(allocator),
},
.cors = .{
.network = network,
.single_flight = .init(allocator),
},
.cors = .{ .single_flight = .init(allocator) },
.url_blocklist = url_blocklist,
.arena_pool = &app.arena_pool,
};