Fixed sample JS code variable naming (#534)
This commit is contained in:
committed by
spalger
parent
f31aa27b6e
commit
0d322d82e3
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user