Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Dec 5, 2023
1 parent a54527c commit 2a6fe49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/bsky/src/cache/read-through.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ export class ReadThroughCache<T> {
const val = cached[key] ? (JSON.parse(cached[key]) as CacheItem<T>) : null
if (!val || this.isExpired(val)) {
toFetch.push(key)
} else if (this.isStale(val)) {
continue
}
if (this.isStale(val)) {
stale.push(key)
} else if (val.val) {
}
if (val.val) {
results[key] = val.val
}
}
Expand Down

0 comments on commit 2a6fe49

Please sign in to comment.