mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
pass robot store into Http init
This commit is contained in:
@@ -50,7 +50,9 @@ pub fn init(allocator: Allocator, config: *const Config) !*App {
|
||||
app.config = config;
|
||||
app.allocator = allocator;
|
||||
|
||||
app.http = try Http.init(allocator, config);
|
||||
app.robots = RobotStore.init(allocator);
|
||||
|
||||
app.http = try Http.init(allocator, &app.robots, config);
|
||||
errdefer app.http.deinit();
|
||||
|
||||
app.platform = try Platform.init();
|
||||
@@ -59,8 +61,6 @@ pub fn init(allocator: Allocator, config: *const Config) !*App {
|
||||
app.snapshot = try Snapshot.load();
|
||||
errdefer app.snapshot.deinit();
|
||||
|
||||
app.robots = RobotStore.init(allocator);
|
||||
|
||||
app.app_dir_path = getAndMakeAppDir(allocator);
|
||||
|
||||
app.telemetry = try Telemetry.init(app, config.mode);
|
||||
|
||||
Reference in New Issue
Block a user