Remove query tables api dependency from health check
This commit is contained in:
@@ -666,7 +666,7 @@ var CartodbWindshaft = function(serverOptions) {
|
||||
|
||||
// ---- Template maps interface ends @}
|
||||
|
||||
var healthCheck = new HealthCheck(cartoData, serverOptions.queryTablesApi, Windshaft.tilelive);
|
||||
var healthCheck = new HealthCheck(cartoData, Windshaft.tilelive);
|
||||
ws.get('/health', function(req, res) {
|
||||
var healthConfig = global.environment.health || {};
|
||||
|
||||
|
||||
@@ -4,9 +4,8 @@ var _ = require('underscore'),
|
||||
path = require('path'),
|
||||
Step = require('step');
|
||||
|
||||
function HealthCheck(metadataBackend, queryTablesApi, tilelive) {
|
||||
function HealthCheck(metadataBackend, tilelive) {
|
||||
this.metadataBackend = metadataBackend;
|
||||
this.queryTablesApi = queryTablesApi;
|
||||
this.tilelive = tilelive;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,8 +71,7 @@ module.exports = function(redisPool) {
|
||||
varnish_secret: global.environment.varnish.secret,
|
||||
cache_enabled: global.environment.cache_enabled,
|
||||
log_format: global.environment.log_format,
|
||||
useProfiler: global.environment.useProfiler,
|
||||
queryTablesApi: queryTablesApi
|
||||
useProfiler: global.environment.useProfiler
|
||||
};
|
||||
|
||||
// Do not send unwatch on release
|
||||
|
||||
Reference in New Issue
Block a user