Compare commits

...

1 Commits

Author SHA1 Message Date
bbuchanan9 a42b244238 bugfix: S3C-2308 Utapi metrics are not expired 2019-07-10 15:23:59 -07:00
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class UtapiClient {
} }
this.disableClient = false; this.disableClient = false;
this.expireMetrics = config.expireMetrics; this.expireMetrics = config.expireMetrics;
this.expireTTL = config.expireTTL || 0; this.expireMetricsTTL = config.expireMetricsTTL || 0;
} }
} }
@ -434,7 +434,7 @@ class UtapiClient {
_expireMetrics(keys, log, callback) { _expireMetrics(keys, log, callback) {
// expire metrics here // expire metrics here
const expireCmds = keys.map(k => ['expire', k, this.expireTTL]); const expireCmds = keys.map(k => ['expire', k, this.expireMetricsTTL]);
return this.ds.multi(expireCmds, (err, result) => { return this.ds.multi(expireCmds, (err, result) => {
if (err) { if (err) {
const logParam = Array.isArray(err) ? { errorList: err } : const logParam = Array.isArray(err) ? { errorList: err } :