mirror of
https://git.robbyzambito.me/zits
synced 2026-02-04 19:54:48 +00:00
some cleanup and freeing
This commit is contained in:
@@ -206,6 +206,7 @@ pub const Message = union(MessageType) {
|
||||
// Parse byte count
|
||||
const byte_count = blk: {
|
||||
var byte_count_list: std.ArrayList(u8) = try .initCapacity(alloc, 64);
|
||||
defer byte_count_list.deinit(alloc);
|
||||
while (in.peekByte()) |byte| {
|
||||
if (std.ascii.isWhitespace(byte)) {
|
||||
try expectStreamBytes(in, "\r\n");
|
||||
|
||||
Reference in New Issue
Block a user