diff options
author | 2023-04-19 00:01:27 -0700 | |
---|---|---|
committer | 2023-04-19 00:01:27 -0700 | |
commit | ea47ed0ee5969d31e03c55ba3bc384466615e513 (patch) | |
tree | f7e40627a41bfbdb626ed4d9fd2fe9adb26710df /src/network_thread.zig | |
parent | 36f9fd607a238fc029d64cc27a26b203a856cbbd (diff) | |
download | bun-ea47ed0ee5969d31e03c55ba3bc384466615e513.tar.gz bun-ea47ed0ee5969d31e03c55ba3bc384466615e513.tar.zst bun-ea47ed0ee5969d31e03c55ba3bc384466615e513.zip |
Fix broken autocomplete
Diffstat (limited to 'src/network_thread.zig')
-rw-r--r-- | src/network_thread.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/network_thread.zig b/src/network_thread.zig index 11292b057..969269c76 100644 --- a/src/network_thread.zig +++ b/src/network_thread.zig @@ -1,15 +1,15 @@ -const ThreadPool = @import("bun").ThreadPool; +const ThreadPool = @import("root").bun.ThreadPool; pub const Batch = ThreadPool.Batch; pub const Task = ThreadPool.Task; const Node = ThreadPool.Node; pub const Completion = AsyncIO.Completion; const std = @import("std"); -pub const AsyncIO = @import("bun").AsyncIO; -const Output = @import("bun").Output; +pub const AsyncIO = @import("root").bun.AsyncIO; +const Output = @import("root").bun.Output; const IdentityContext = @import("./identity_context.zig").IdentityContext; const HTTP = @import("./http_client_async.zig"); const NetworkThread = @This(); -const Environment = @import("bun").Environment; +const Environment = @import("root").bun.Environment; const Lock = @import("./lock.zig").Lock; /// Single-thread in this pool @@ -25,9 +25,9 @@ pub var global: NetworkThread = undefined; pub var global_loaded: std.atomic.Atomic(u32) = std.atomic.Atomic(u32).init(0); const log = Output.scoped(.NetworkThread, true); -const Global = @import("bun").Global; +const Global = @import("root").bun.Global; pub fn onStartIOThread(waker: AsyncIO.Waker) void { - NetworkThread.address_list_cached = NetworkThread.AddressListCache.init(@import("bun").default_allocator); + NetworkThread.address_list_cached = NetworkThread.AddressListCache.init(@import("root").bun.default_allocator); AsyncIO.global = AsyncIO.init(1024, 0, waker) catch |err| { log: { if (comptime Environment.isLinux) { @@ -233,7 +233,7 @@ pub fn init() !void { const fd = try std.os.eventfd(0, std.os.linux.EFD.CLOEXEC | 0); global.waker = .{ .fd = fd }; } else if (comptime Environment.isMac) { - global.waker = try AsyncIO.Waker.init(@import("bun").default_allocator); + global.waker = try AsyncIO.Waker.init(@import("root").bun.default_allocator); } else { @compileLog("TODO: Waker"); } |