Remove done TODOs.
parent
54fc5aa9e0
commit
1b19118701
|
@ -385,8 +385,6 @@ pub const Context = struct {
|
|||
}
|
||||
// otherwise = new message or disconnection
|
||||
else {
|
||||
// TODO: handle incoming message
|
||||
// TODO: handle_new_message
|
||||
var maybe_message = self.read(i) catch |err| switch(err) {
|
||||
error.ConnectionResetByPeer => {
|
||||
print("connection reset by peer\n", .{});
|
||||
|
@ -395,6 +393,7 @@ pub const Context = struct {
|
|||
},
|
||||
else => { return err; },
|
||||
};
|
||||
|
||||
if (maybe_message) |m| {
|
||||
if (m.t == .LOOKUP) {
|
||||
return Event.init(Event.Type.LOOKUP, i, fd.fd, m);
|
||||
|
|
Reference in New Issue