publish works

starting to use errors instead of unreachable for stream parsing
This commit is contained in:
2025-12-29 01:34:10 +00:00
parent 335c4aa092
commit 4bf5ddca15
3 changed files with 27 additions and 29 deletions

View File

@@ -109,17 +109,6 @@ pub fn writeInfo(out: *std.Io.Writer, info: Message.ServerInfo) !void {
}
fn writeMsg(out: *std.Io.Writer, msg: Message.Msg) !void {
std.debug.print("PRINTING MESSAGE\n\n\n\n", .{});
std.debug.print(
"MSG {s} {s} {s} {d}\r\n{s}\r\n-\n\n\n",
.{
msg.subject,
msg.sid,
msg.reply_to orelse "",
msg.payload.len,
msg.payload,
},
);
try out.print(
"MSG {s} {s} {s} {d}\r\n{s}\r\n",
.{