From 96a6a0d980ccc9e83241859f9db74d035f0cbcda Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 13 Jul 2015 15:05:45 +0200 Subject: [PATCH] Using MapStore, no need to attach it to app --- lib/cartodb/server.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/cartodb/server.js b/lib/cartodb/server.js index fdc028ce..3bfad338 100644 --- a/lib/cartodb/server.js +++ b/lib/cartodb/server.js @@ -132,7 +132,6 @@ module.exports = function(serverOptions) { pool: redisPool, expire_time: serverOptions.grainstore.default_layergroup_ttl }); - app.mapStore = mapStore; var onTileErrorStrategy; if (global.environment.enabledFeatures.onTileErrorStrategy !== false) { @@ -521,14 +520,6 @@ module.exports = function(serverOptions) { function extractSQL(err) { assert.ifError(err); - // TODO: cached cache channel for token-based access should - // be constructed at renderer cache creation time - // See http://github.com/CartoDB/Windshaft-cartodb/issues/152 - if ( ! app.mapStore ) { - throw new Error('missing channel cache for token ' + req.params.token); - } - var mapStore = app.mapStore; - step( function loadFromStore() { mapStore.load(req.params.token, this);