More cleanup

This commit is contained in:
2025-12-29 04:56:48 +00:00
parent b9d0672971
commit fe4c1d410b
2 changed files with 2 additions and 16 deletions

View File

@@ -42,7 +42,6 @@ pub const ClientState = struct {
) void {
while (true) {
const message = self.recv_queue.getOne(io) catch break;
std.debug.print("got message in write loop to send to client: {any}\n", .{message});
switch (message) {
.@"+ok" => {
writeOk(self.to_client) catch break;
@@ -54,12 +53,7 @@ pub const ClientState = struct {
writeInfo(self.to_client, info) catch break;
},
.msg => |m| {
if (writeMsg(self.to_client, m)) |_| {
@branchHint(.likely);
} else |_| {
@branchHint(.unlikely);
break;
}
writeMsg(self.to_client, m) catch break;
},
else => {
std.debug.panic("unimplemented write", .{});