Fix freshness persistence, optimize pubkey loading

This commit is contained in:
Jon Staab
2024-12-11 11:03:22 -08:00
parent a378ecbad4
commit 2ee370e78b
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -118,7 +118,7 @@
const migrateFreshness = (data: {key: string; value: number}[]) => {
const cutoff = ago(HOUR)
return data.filter(({value}) => value < cutoff)
return data.filter(({value}) => value > cutoff)
}
const migratePlaintext = (data: {key: string; value: number}[]) => data.slice(0, 10_000)