Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Jun 30, 2023
1 parent 65e4a09 commit d6a5111
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions src/bun.js/api/bun/socket.zig
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Handlers = struct {
}

pub fn markInactive(this: *Handlers, ssl: bool, ctx: *uws.SocketContext, wrapped: WrappedType) void {
Listener.log("markInactive {} {}", .{ wrapped, this.active_connections });
Listener.log("markInactive", .{});
this.active_connections -= 1;
if (this.active_connections == 0) {
if (this.is_server) {
Expand Down Expand Up @@ -1106,10 +1106,7 @@ fn NewSocket(comptime ssl: bool) type {
this.handlers.markInactive(ssl, this.socket.context(), this.wrapped);
this.poll_ref.unref(vm);
this.has_pending_activity.store(false, .Release);
log("markInactive ok! {}", .{this.wrapped});
return;
}
log("markInactive not yet {}", .{this.wrapped});
}

pub fn onOpen(this: *This, socket: Socket) void {
Expand Down
4 changes: 0 additions & 4 deletions src/js/node/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,6 @@ const Socket = (function (InternalSocket) {
this.#writeChunk = chunk;
}
}

prependoncelistener(){
console.log("hey!", arguments);
}
},
);

Expand Down

0 comments on commit d6a5111

Please sign in to comment.