adjust permissions and use parrallel processing

This commit is contained in:
Ajay
2022-07-29 11:47:28 -04:00
parent 186f07b20c
commit da1ed70c66
4 changed files with 37 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ import { Logger } from "../utils/logger";
import { QueryCacher } from "../utils/queryCacher";
import { getReputation } from "../utils/reputation";
import { getService } from "../utils/getService";
import { promiseOrTimeout } from "../utils/promiseTimeout";
import { promiseOrTimeout } from "../utils/promise";
async function prepareCategorySegments(req: Request, videoID: VideoID, service: Service, segments: DBSegment[], cache: SegmentCache = { shadowHiddenSegmentIPs: {} }, useCache: boolean): Promise<Segment[]> {