Compare commits

..

No commits in common. "954a0cc5a3dc6b90d61da7f3bd05920f1d55d826" and "7dd49ca4188c2620b7ee0078bd38527b1c3c06ab" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -19,9 +19,7 @@ class RedisCache {
moduleLogger.debug('Connecting to redis...');
this._redis = new RedisClient(this._options);
this._redis.connect();
return new Promise(resolve => {
this._redis.once('ready', () => resolve(true));
});
return true;
}
async disconnect() {

View File

@ -23,7 +23,7 @@ class CacheClient {
async pushMetric(metric) {
const shard = shardFromTimestamp(metric.timestamp);
if (!(await this._cacheBackend.addToShard(shard, metric))) {
if (!this._cacheBackend.addToShard(shard, metric)) {
return false;
}
await this._counterBackend.updateCounters(metric);