[internal] Global.configureAllocator()

This commit is contained in:
Jarred Sumner
2021-11-02 18:07:11 -07:00
parent fbb0342511
commit 204d468ad2
5 changed files with 27 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
const Server = @import("../http.zig").Server;
const Command = @import("../cli.zig").Command;
const Global = @import("../global.zig").Global;
pub const DevCommand = struct {
pub fn exec(ctx: Command.Context) !void {
Global.configureAllocator(.{ .long_running = true });
try Server.start(ctx.allocator, ctx.args, @TypeOf(ctx.debug), ctx.debug);
}
};