Use good defaults
This commit is contained in:
@@ -87,14 +87,11 @@ module.exports = class ApiRouter {
|
||||
global.log4js.getLogger('[windshaft]') :
|
||||
null;
|
||||
|
||||
const mapStoreOptions = {
|
||||
const mapStore = new windshaft.storage.MapStore({
|
||||
pool: redisPool,
|
||||
expire_time: serverOptions.grainstore.default_layergroup_ttl,
|
||||
logger: windshaftLogger
|
||||
};
|
||||
if (Number.isFinite(serverOptions.grainstore.default_layergroup_ttl)) {
|
||||
mapStoreOptions.expire_time = serverOptions.grainstore.default_layergroup_ttl;
|
||||
}
|
||||
const mapStore = new windshaft.storage.MapStore(mapStoreOptions);
|
||||
});
|
||||
|
||||
const rendererFactory = createRendererFactory({ redisPool, serverOptions, environmentOptions });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user