From 0121d3db2adb39eba18d24a8e118ae6f90ce7217 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 19 Jan 2017 14:29:47 -0500 Subject: [PATCH] get # of retries from API config instead of ES client --- controller/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/search.js b/controller/search.js index b7d8bc6d..4e85f25f 100644 --- a/controller/search.js +++ b/controller/search.js @@ -39,10 +39,10 @@ function setup( apiConfig, esclient, query ){ logger.debug( '[ES req]', cmd ); // options for retry - // maxRetries is from the ES client which defaults to 3 + // maxRetries is from the API config with default of 3 // factor of 1 means that each retry attempt will esclient requestTimeout const operationOptions = { - retries: _.get(esclient, 'transport.maxRetries'), + retries: _.get(apiConfig, 'requestRetries', 3), factor: 1, minTimeout: _.get(esclient, 'transport.requestTimeout') };