Skip to content

Commit

Permalink
chore: suffix argument with unit to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Mar 26, 2024
1 parent e1f02f4 commit 569a076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/verified-fetch/src/utils/tlru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export class TLRU<T> {
return undefined
}

set (key: string, value: T, ttl: number): void {
this.lru.set(key, { value, expire: Date.now() + ttl })
set (key: string, value: T, ttlMs: number): void {
this.lru.set(key, { value, expire: Date.now() + ttlMs })
}

has (key: string): boolean {
Expand Down

0 comments on commit 569a076

Please sign in to comment.