mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Prepare global NetworkRuntime module
This commit is contained in:
@@ -46,7 +46,7 @@ pub fn main() !void {
|
||||
var test_arena = std.heap.ArenaAllocator.init(allocator);
|
||||
defer test_arena.deinit();
|
||||
|
||||
const http_client = try app.http.createClient(allocator);
|
||||
const http_client = try lp.HttpClient.init(allocator, &app.network);
|
||||
defer http_client.deinit();
|
||||
|
||||
var browser = try lp.Browser.init(app, .{ .http_client = http_client });
|
||||
|
||||
Reference in New Issue
Block a user