mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add previews cache system between pods
This commit is contained in:
parent
075f16caac
commit
f981dae861
27 changed files with 202 additions and 16 deletions
|
@ -16,6 +16,7 @@ import {
|
|||
import * as mkdirp from 'mkdirp'
|
||||
import * as bcrypt from 'bcrypt'
|
||||
import * as createTorrent from 'create-torrent'
|
||||
import * as rimraf from 'rimraf'
|
||||
import * as openssl from 'openssl-wrapper'
|
||||
import * as Promise from 'bluebird'
|
||||
|
||||
|
@ -83,6 +84,7 @@ const bcryptComparePromise = promisify2<any, string, boolean>(bcrypt.compare)
|
|||
const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt)
|
||||
const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash)
|
||||
const createTorrentPromise = promisify2<string, any, any>(createTorrent)
|
||||
const rimrafPromise = promisify1WithVoid<string>(rimraf)
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
@ -105,5 +107,6 @@ export {
|
|||
bcryptComparePromise,
|
||||
bcryptGenSaltPromise,
|
||||
bcryptHashPromise,
|
||||
createTorrentPromise
|
||||
createTorrentPromise,
|
||||
rimrafPromise
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue