mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Share the HTTP client globally
This commit is contained in:
@@ -75,7 +75,7 @@ pub fn main() !void {
|
||||
app.telemetry.record(.{ .run = {} });
|
||||
|
||||
const timeout = std.time.ns_per_s * @as(u64, opts.timeout);
|
||||
server.run(&app, address, timeout) catch |err| {
|
||||
server.run(app, address, timeout) catch |err| {
|
||||
log.err("Server error", .{});
|
||||
return err;
|
||||
};
|
||||
@@ -92,7 +92,7 @@ pub fn main() !void {
|
||||
defer vm.deinit();
|
||||
|
||||
// browser
|
||||
var browser = Browser.init(&app);
|
||||
var browser = Browser.init(app);
|
||||
defer browser.deinit();
|
||||
|
||||
var session = try browser.newSession({});
|
||||
|
||||
Reference in New Issue
Block a user