Fixed sample JS code variable naming (#534)
This commit is contained in:
committed by
Spencer
parent
aba4728266
commit
63450501de
@ -85,7 +85,7 @@ var client = new elasticsearch.Client({
|
|||||||
weight: 50
|
weight: 50
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
selector: function (hosts) {
|
selector: function (nodes) {
|
||||||
var myCountry = process.env.COUNTRY;
|
var myCountry = process.env.COUNTRY;
|
||||||
// first try to find a node that is in the same country
|
// first try to find a node that is in the same country
|
||||||
var selection = _.find(nodes, function (node) {
|
var selection = _.find(nodes, function (node) {
|
||||||
|
|||||||
Reference in New Issue
Block a user