1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: this.timer merge conflict

This commit is contained in:
Ivar Conradi Østhus 2020-12-16 14:56:48 +01:00
parent 5857f0e58d
commit 71eb88c847

View File

@ -31,7 +31,7 @@ class ClientInstanceStore {
this.db = db;
this.eventBus = eventBus;
this.logger = getLogger('client-instance-store.js');
this.timer = action =>
this.metricTimer = action =>
metricsHelper.wrapTimer(eventBus, DB_TIME, {
store: 'instance',
action,
@ -72,7 +72,7 @@ class ClientInstanceStore {
}
async insert(details) {
const stopTimer = this.timer('insert');
const stopTimer = this.metricTimer('insert');
const result = await this.db(TABLE)
.count('*')
@ -94,7 +94,7 @@ class ClientInstanceStore {
}
async getAll() {
const stopTimer = this.timer('getAll');
const stopTimer = this.metricTimer('getAll');
const rows = await this.db
.select(COLUMNS)