1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Fix weird bug where CPU jumps and stays to 100%

Seems related to lazy import of custom-jsonld-signature
So we refactored jsonld function calls a little bit
This commit is contained in:
Chocobozzz 2023-11-24 14:44:18 +01:00
parent f93bc6a8be
commit b017d4d02f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 108 additions and 105 deletions

View file

@ -1,6 +1,7 @@
import { ContextType } from '@peertube/peertube-models'
import { ACTIVITY_PUB } from '@server/initializers/constants.js'
import { buildDigest, signJsonLDObject } from './peertube-crypto.js'
import { buildDigest } from './peertube-crypto.js'
import type { signJsonLDObject } from './peertube-jsonld.js'
export type ContextFilter = <T> (arg: T) => Promise<T>