Improve naming

This commit is contained in:
Daniel García Aubert 2019-10-01 18:22:13 +02:00
parent f71c7bc3a8
commit 54cf5a072f
2 changed files with 3 additions and 3 deletions

4
app.js
View File

@ -86,9 +86,9 @@ if (global.settings.statsd) {
}
const statsClient = StatsClient.getInstance(global.settings.statsd);
const serverFactory = require('./app/server');
const createServer = require('./app/server');
const server = serverFactory(statsClient);
const server = createServer(statsClient);
const listener = server.listen(global.settings.node_port, global.settings.node_host);
listener.on('listening', function() {
console.info("Using Node.js %s", process.version);

View File

@ -17,7 +17,7 @@ process.env.PGAPPNAME = process.env.PGAPPNAME || 'cartodb_sqlapi';
require('./utils/date_to_json');
// jshint maxcomplexity:9
module.exports = function serverFactory (statsClient) {
module.exports = function createServer (statsClient) {
const app = express();
const redisPool = new RedisPool({
name: 'sql-api',