Skip to content

Commit

Permalink
fix cleaninterval args type
Browse files Browse the repository at this point in the history
  • Loading branch information
witsaint committed Nov 15, 2024
1 parent 727cb7e commit d24a176
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getLanguageModelCache<T>(maxEntries: number, cleanupIntervalTime
let languageModels: Record</* uri */ string, { version: number, languageId: string, cTime: number, languageModel: T }> = {};
let nModels = 0;

let cleanupInterval: NodeJS.Timer | undefined = undefined;
let cleanupInterval: NodeJS.Timeout | undefined = undefined;
if (cleanupIntervalTimeInSec > 0) {
cleanupInterval = setInterval(() => {
const cutoffTime = Date.now() - cleanupIntervalTimeInSec * 1000;
Expand Down

0 comments on commit d24a176

Please sign in to comment.