dainis/node-elasticsearch-thrift — pull request #2 by aandy (2013-06-26 11:47:42+00:00)
Title: closeConnections issue

Running the MASTER lib with a 0.90.2 ElasticSearch server yielded:

>TypeError: Cannot call method 'forEach' of undefined
> at ElasticSearchThrift.closeConnections (node_modules/elasticsearch-thrift/elasticsearch-thrift.js:276:25)

These commits fixes that, and tidies up the example to show, what I believe to be, what you intended.