aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-12 11:56:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-12 11:56:02 +0200
commitf981dae8617271a2dc713bb683951730b306e0c5 (patch)
treeecee631766bc1b98c20a7836479fed40850c5a56 /server/helpers
parent075f16caac5236cb04c98ae7b3a989766d764bb3 (diff)
downloadPeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.gz
PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.zst
PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.zip
Add previews cache system between pods
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/core-utils.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts
index 1e92049f1..d28c97f09 100644
--- a/server/helpers/core-utils.ts
+++ b/server/helpers/core-utils.ts
@@ -16,6 +16,7 @@ import {
16import * as mkdirp from 'mkdirp' 16import * as mkdirp from 'mkdirp'
17import * as bcrypt from 'bcrypt' 17import * as bcrypt from 'bcrypt'
18import * as createTorrent from 'create-torrent' 18import * as createTorrent from 'create-torrent'
19import * as rimraf from 'rimraf'
19import * as openssl from 'openssl-wrapper' 20import * as openssl from 'openssl-wrapper'
20import * as Promise from 'bluebird' 21import * as Promise from 'bluebird'
21 22
@@ -83,6 +84,7 @@ const bcryptComparePromise = promisify2<any, string, boolean>(bcrypt.compare)
83const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) 84const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt)
84const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash) 85const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash)
85const createTorrentPromise = promisify2<string, any, any>(createTorrent) 86const createTorrentPromise = promisify2<string, any, any>(createTorrent)
87const rimrafPromise = promisify1WithVoid<string>(rimraf)
86 88
87// --------------------------------------------------------------------------- 89// ---------------------------------------------------------------------------
88 90
@@ -105,5 +107,6 @@ export {
105 bcryptComparePromise, 107 bcryptComparePromise,
106 bcryptGenSaltPromise, 108 bcryptGenSaltPromise,
107 bcryptHashPromise, 109 bcryptHashPromise,
108 createTorrentPromise 110 createTorrentPromise,
111 rimrafPromise
109} 112}