From 31c1f852872c0c61064ed94ca758eae3c258806b Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sun, 4 Aug 2019 11:15:40 +0200 Subject: [PATCH] chore: move metrics-helper.js --- lib/db/client-applications-store.js | 2 +- lib/db/client-instance-store.js | 2 +- lib/db/client-metrics-store.js | 2 +- lib/{db => }/metrics-helper.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename lib/{db => }/metrics-helper.js (94%) diff --git a/lib/db/client-applications-store.js b/lib/db/client-applications-store.js index 32a49f268a..a366978f92 100644 --- a/lib/db/client-applications-store.js +++ b/lib/db/client-applications-store.js @@ -1,7 +1,7 @@ /* eslint camelcase:off */ 'use strict'; -const metricsHelper = require('./metrics-helper'); +const metricsHelper = require('../metrics-helper'); const { DB_TIME } = require('../events'); const COLUMNS = [ diff --git a/lib/db/client-instance-store.js b/lib/db/client-instance-store.js index 7745b4c579..8b77cc1f9d 100644 --- a/lib/db/client-instance-store.js +++ b/lib/db/client-instance-store.js @@ -1,7 +1,7 @@ /* eslint camelcase: "off" */ 'use strict'; -const metricsHelper = require('./metrics-helper'); +const metricsHelper = require('../metrics-helper'); const { DB_TIME } = require('../events'); const COLUMNS = [ diff --git a/lib/db/client-metrics-store.js b/lib/db/client-metrics-store.js index 095ea90995..9e83e256cf 100644 --- a/lib/db/client-metrics-store.js +++ b/lib/db/client-metrics-store.js @@ -1,7 +1,7 @@ 'use strict'; const { EventEmitter } = require('events'); -const metricsHelper = require('./metrics-helper'); +const metricsHelper = require('../metrics-helper'); const { DB_TIME } = require('../events'); const TEN_SECONDS = 10 * 1000; diff --git a/lib/db/metrics-helper.js b/lib/metrics-helper.js similarity index 94% rename from lib/db/metrics-helper.js rename to lib/metrics-helper.js index 7926bfa41d..6ac9541ef0 100644 --- a/lib/db/metrics-helper.js +++ b/lib/metrics-helper.js @@ -1,6 +1,6 @@ 'use strict'; -const timer = require('../timer'); +const timer = require('./timer'); // wrapTimer keeps track of the timing of a async operation and emits // a event on the given eventBus once the operation is complete