remove closure

This commit is contained in:
a 2023-06-26 03:33:42 -05:00
parent b90020f138
commit 432419f4bd
No known key found for this signature in database
GPG Key ID: 374BC539FE795AF0

View File

@ -52,13 +52,10 @@ func (d *Dialer) Dial(ctx context.Context, network, addr string) (net.Conn, erro
sock.writer = sock.socket.Get("writable").Call("getWriter")
sock.reader = sock.socket.Get("readable").Call("getReader")
sock.options = d.opts
sock.rd = jsutil.ConvertReadableStreamToReader(sock.reader)
sock.ctx, sock.cn = context.WithCancel(d.ctx)
{
sock.rd = jsutil.ConvertReadableStreamToReader(sock.reader)
}
return sock, nil
}