Fixed sample JS code variable naming (#534)

This commit is contained in:
Charitha Sathkumara
2017-04-25 17:39:06 -07:00
committed by spalger
parent f31aa27b6e
commit 0d322d82e3

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) {