use LRUSet to skip already seen event processing

This commit is contained in:
Martti Malmi
2024-01-04 10:36:23 +02:00
parent c2899eac26
commit 287ce32690
5 changed files with 21 additions and 1 deletions

View File

@ -82,3 +82,10 @@ export function parseIMeta(tags: Array<Array<string>>) {
}
return ret;
}
export function getHex64(json: string, field: string): string {
let len = field.length + 3
let idx = json.indexOf(`"${field}":`) + len
let s = json.slice(idx).indexOf(`"`) + idx + 1
return json.slice(s, s + 64)
}