From f697e69d4512127d3d9a7a3f897520cbfd793c13 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 15 Jun 2023 20:03:51 -0700 Subject: [PATCH] fix panic under heavy load --- src/interface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);