Remove query tables api dependency from health check

This commit is contained in:
Raul Ochoa
2015-01-13 12:09:02 +01:00
parent aad2a1e098
commit 3f1aa9955b
4 changed files with 53 additions and 59 deletions
+1 -1
View File
@@ -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 || {};
+1 -2
View File
@@ -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;
}
+1 -2
View File
@@ -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