diff options
| author | Robby Zambito <contact@robbyzambito.me> | 2026-01-06 22:26:49 -0500 |
|---|---|---|
| committer | Robby Zambito <contact@robbyzambito.me> | 2026-01-06 23:04:19 -0500 |
| commit | 3674792e3fde1281f9719c114c9c3703742c6ce6 (patch) | |
| tree | 4da8fe04fe4446f6a1041851c585230e4e854870 /src/Server | |
| parent | b6762ccb7c71eb2fa3585a530ae5687176f30c6c (diff) | |
scope parse logger
also change internal name to match public name
Diffstat (limited to 'src/Server')
| -rw-r--r-- | src/Server/parse.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Server/parse.zig b/src/Server/parse.zig index d58c0e5..70dd2bc 100644 --- a/src/Server/parse.zig +++ b/src/Server/parse.zig @@ -7,7 +7,7 @@ const Writer = std.Io.Writer; const AllocatingWriter = std.Io.Writer.Allocating; const StaticStringMap = std.StaticStringMap; -const log = std.log; +const log = std.log.scoped(.zits); const isDigit = std.ascii.isDigit; const isUpper = std.ascii.isUpper; @@ -19,7 +19,7 @@ const message = @import("./parse/message.zig"); pub const Message = message.Message; pub const Payload = @import("./parse/Payload.zig"); -const client_types = StaticStringMap(message.Control).initComptime( +const client_control = StaticStringMap(message.Control).initComptime( .{ // {"INFO", .info}, .{ @tagName(.CONNECT), .CONNECT }, @@ -36,7 +36,7 @@ const client_types = StaticStringMap(message.Control).initComptime( }, ); fn parseStaticStringMap(input: []const u8) ?message.Control { - return client_types.get(input); + return client_control.get(input); } /// Parse a string into its associated MessageType. @@ -47,7 +47,7 @@ pub fn next(alloc: Allocator, in: *Reader) !Message { var operation_string: ArrayList(u8) = blk: { comptime var buf_len = 0; comptime { - for (client_types.keys()) |key| { + for (client_control.keys()) |key| { buf_len = @max(buf_len, key.len); } } |
