mirror of
https://git.robbyzambito.me/zits
synced 2026-02-04 11:44:48 +00:00
some cleanup and freeing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user