auditted lodash usage to ensure that it is compatible with lodash 3.0

This commit is contained in:
Spencer Alger
2015-03-17 13:47:44 -07:00
parent ed26798e5e
commit ec6b0fcefc
10 changed files with 26 additions and 18 deletions

View File

@ -22,10 +22,9 @@ process.once('message', function (port) {
var conns = es.transport.connectionPool._conns;
var sockets = _([].concat(conns.dead, conns.alive))
.transform(function (sockets, conn) {
[].push.apply(sockets, _.values(conn.agent.sockets));
[].push.apply(sockets, _.values(conn.agent.freeSockets));
sockets.push(_.values(conn.agent.sockets), _.values(conn.agent.freeSockets));
}, [])
.flatten()
.flattenDeep()
.value();
es.close();