From 103700a242acc8087c818b2bf0ab7082b5c90f18 Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 1 Oct 2020 00:48:23 -0700 Subject: [PATCH] use less violent language --- packages/kbn-optimizer/src/node/cache.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/kbn-optimizer/src/node/cache.ts b/packages/kbn-optimizer/src/node/cache.ts index 2a02376604f7690..5ebe4fb3531291d 100644 --- a/packages/kbn-optimizer/src/node/cache.ts +++ b/packages/kbn-optimizer/src/node/cache.ts @@ -81,12 +81,12 @@ export class Cache { encoding: 'msgpack', }); - // after the process has been running for 30 minutes cull the + // after the process has been running for 30 minutes prune the // keys which haven't been used in 30 days. We use `unref()` to // make sure this timer doesn't hold other processes open // unexpectedly setTimeout(() => { - this.cullOldKeys(); + this.pruneOldKeys(); }, 30 * MINUTE).unref(); } @@ -124,7 +124,7 @@ export class Cache { return `${this.prefix}${path}`; } - private async cullOldKeys() { + private async pruneOldKeys() { try { const ATIME_LIMIT = Date.now() - 30 * DAY; const BATCH_SIZE = 1000;