From 5eaee0b71e95f4478a2ede339b6439c5a009ffae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 1 Mar 2018 18:12:07 +0100 Subject: [PATCH] Follow middleware naming convention --- lib/cartodb/middleware/stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/middleware/stats.js b/lib/cartodb/middleware/stats.js index 489ee645..83ff3054 100644 --- a/lib/cartodb/middleware/stats.js +++ b/lib/cartodb/middleware/stats.js @@ -2,10 +2,10 @@ const Profiler = require('../stats/profiler_proxy'); const debug = require('debug')('windshaft:cartodb:stats'); const onHeaders = require('on-headers'); -module.exports = function statsMiddleware(options) { +module.exports = function stats (options) { const { enabled = true, statsClient } = options; - return function stats(req, res, next) { + return function statsMiddleware (req, res, next) { req.profiler = new Profiler({ statsd_client: statsClient, profile: enabled