Fixed sample JS code variable naming (#534)

This commit is contained in:
Charitha Sathkumara
2017-04-25 17:39:06 -07:00
committed by Spencer
parent aba4728266
commit 63450501de

View File

@ -85,7 +85,7 @@ var client = new elasticsearch.Client({
weight: 50
}
],
selector: function (hosts) {
selector: function (nodes) {
var myCountry = process.env.COUNTRY;
// first try to find a node that is in the same country
var selection = _.find(nodes, function (node) {