pass robot store into Http init

This commit is contained in:
Muki Kiboigo
2026-02-04 11:49:52 -08:00
parent 50aeb9ff21
commit a7095d7dec
7 changed files with 14 additions and 18 deletions

View File

@@ -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);