From af7de7613f4d7595a4d89ba00d14457104a175ae Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Fri, 5 Aug 2016 09:13:57 -0400 Subject: [PATCH] updated to reflect @missinglink's comments the rebase was brutal, i thought that i caught everything, thx for checking --- index.js | 1 + middleware/trimByGranularity.js | 2 +- sanitiser/search.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d9503bf0..42116f53 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,7 @@ var cluster = require('cluster'), app = require('./app'), port = ( process.env.PORT || 3100 ), + // when pelias/api#601 is done this can be changed to `true` multicore = false; /** cluster webserver across all cores **/ diff --git a/middleware/trimByGranularity.js b/middleware/trimByGranularity.js index 9594e879..1fade0cc 100644 --- a/middleware/trimByGranularity.js +++ b/middleware/trimByGranularity.js @@ -10,7 +10,7 @@ var _ = require('lodash'); // - state // // Because the address matched, we're not interested in city+state or state, so -// this component removes that aren't the most granular. +// this component removes results that aren't the most granular. // layers in increasing order of granularity var layers = [ diff --git a/sanitiser/search.js b/sanitiser/search.js index feceb2ef..130de40f 100644 --- a/sanitiser/search.js +++ b/sanitiser/search.js @@ -8,7 +8,7 @@ var sanitizeAll = require('../sanitiser/sanitizeAll'), size: require('../sanitiser/_size')(/* use defaults*/), layers: require('../sanitiser/_targets')('layers', type_mapping.layer_mapping), sources: require('../sanitiser/_targets')('sources', type_mapping.source_mapping), - // // depends on the layers and sources sanitisers, must be run after them + // depends on the layers and sources sanitisers, must be run after them sources_and_layers: require('../sanitiser/_sources_and_layers'), private: require('../sanitiser/_flag_bool')('private', false), geo_search: require('../sanitiser/_geo_search'),