mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 00:08:59 +00:00
use async-client for telemetry
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const std = @import("std");
|
||||
|
||||
const Loop = @import("jsruntime").Loop;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const Telemetry = @import("telemetry/telemetry.zig").Telemetry;
|
||||
|
||||
@@ -8,8 +9,8 @@ const Telemetry = @import("telemetry/telemetry.zig").Telemetry;
|
||||
pub const App = struct {
|
||||
telemetry: Telemetry,
|
||||
|
||||
pub fn init(allocator: Allocator) !App {
|
||||
const telemetry = Telemetry.init(allocator);
|
||||
pub fn init(allocator: Allocator, loop: *Loop) !App {
|
||||
const telemetry = Telemetry.init(allocator, loop);
|
||||
errdefer telemetry.deinit();
|
||||
|
||||
return .{
|
||||
|
||||
Reference in New Issue
Block a user