mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +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.bulkInterval = bulkInterval;
|
||||
this.timer = setInterval(() => {
|
||||
this.clientMetricsStoreV2.clearMetrics(48);
|
||||
}, hoursToMilliseconds(24));
|
||||
this.timer = setInterval(async () => {
|
||||
await this.clientMetricsStoreV2.clearMetrics(48);
|
||||
}, hoursToMilliseconds(12));
|
||||
this.timer.unref();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user