Lightpanda: the headless browser designed for AI and automation
get rid of allocator stored in RobotsGate
Muki Kiboigofb5a9b6a35fd
diff --git a/src/network/HttpClient.zig b/src/network/HttpClient.zigindex f201469d6..1b3e02033 100644--- a/src/network/HttpClient.zig+++ b/src/network/HttpClient.zig@@ -223,7 +223,6 @@ pub fn init(self: *Client, allocator: Allocator, network: *Network, cdp: ?*CDP).serve_mode = network.config.mode == .serve,.obey_robots = network.config.obeyRobots(),.robots = .{- .allocator = allocator,.network = network,.single_flight = .init(allocator),},@@ -3391,7 +3390,6 @@ fn initTestClient(client: *Client, pool: *ArenaPool) void {client.serve_mode = false;client.obey_robots = false;client.robots = .{- .allocator = testing.allocator,.network = undefined,.single_flight = .init(testing.allocator),};diff --git a/src/network/RobotsGate.zig b/src/network/RobotsGate.zigindex cb3ccd1ef..0c91191e8 100644--- a/src/network/RobotsGate.zig+++ b/src/network/RobotsGate.zig@@ -39,7 +39,6 @@ const Allocator = std.mem.Allocator;const RobotsGate = @This();network: *Network,-allocator: Allocator,single_flight: SingleFlight,pub const Result = enum { allowed, blocked, pending };