some cleanup and freeing

This commit is contained in:
2025-12-31 02:13:15 +00:00
parent e60a566a7c
commit 0f138e5984
3 changed files with 23 additions and 10 deletions

View File

@@ -68,9 +68,8 @@ pub const ClientState = struct {
}
/// Return true if the value was put in the clients buffer to process, else false.
pub fn send(self: *ClientState, io: std.Io, msg: Message) (std.Io.Cancelable || std.Io.QueueClosedError)!bool {
pub fn send(self: *ClientState, io: std.Io, msg: Message) (std.Io.Cancelable || std.Io.QueueClosedError)!void {
try self.recv_queue.putOne(io, msg);
return true;
}
pub fn next(self: *ClientState, allocator: std.mem.Allocator) !Message {