Skip to content

Commit

Permalink
use less violent language
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Oct 1, 2020
1 parent e9b4c25 commit 103700a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kbn-optimizer/src/node/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 103700a

Please sign in to comment.