mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: metrics v2 should await for the clearer (#1114)
This commit is contained in:
parent
3dfc037df7
commit
b47b507e18
@ -29,9 +29,9 @@ export default class ClientMetricsServiceV2 {
|
|||||||
this.logger = getLogger('/services/client-metrics/index.ts');
|
this.logger = getLogger('/services/client-metrics/index.ts');
|
||||||
|
|
||||||
this.bulkInterval = bulkInterval;
|
this.bulkInterval = bulkInterval;
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(async () => {
|
||||||
this.clientMetricsStoreV2.clearMetrics(48);
|
await this.clientMetricsStoreV2.clearMetrics(48);
|
||||||
}, hoursToMilliseconds(24));
|
}, hoursToMilliseconds(12));
|
||||||
this.timer.unref();
|
this.timer.unref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user