diff --git a/src/interface.zig b/src/interface.zig index c4e2d91..3b8a3f8 100644 --- a/src/interface.zig +++ b/src/interface.zig @@ -28,7 +28,7 @@ pub const Request = extern struct { }; // If the library is Zig, we can use these helpers -var allocator: ?*std.mem.Allocator = null; +threadlocal var allocator: ?*std.mem.Allocator = null; const log = std.log.scoped(.interface);