mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Centralizes configuration, eliminates unnecessary copying of config
This commit is contained in:
@@ -32,12 +32,16 @@ pub fn main() !void {
|
||||
wg.wait();
|
||||
}
|
||||
lp.log.opts.level = .warn;
|
||||
|
||||
var app = try lp.App.init(allocator, .{
|
||||
.run_mode = .serve,
|
||||
.tls_verify_host = false,
|
||||
.user_agent = "User-Agent: Lightpanda/1.0 internal-tester",
|
||||
});
|
||||
const config = lp.Config{
|
||||
.mode = .{ .serve = .{
|
||||
.common = .{
|
||||
.tls_verify_host = false,
|
||||
.user_agent_suffix = "internal-tester",
|
||||
},
|
||||
} },
|
||||
.exec_name = "legacy-test",
|
||||
};
|
||||
var app = try lp.App.init(allocator, &config);
|
||||
defer app.deinit();
|
||||
|
||||
var test_arena = std.heap.ArenaAllocator.init(allocator);
|
||||
|
||||
Reference in New Issue
Block a user