diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-12 11:56:02 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-12 11:56:02 +0200 |
commit | f981dae8617271a2dc713bb683951730b306e0c5 (patch) | |
tree | ecee631766bc1b98c20a7836479fed40850c5a56 /server/helpers | |
parent | 075f16caac5236cb04c98ae7b3a989766d764bb3 (diff) | |
download | PeerTube-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.ts | 5 |
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 { | |||
16 | import * as mkdirp from 'mkdirp' | 16 | import * as mkdirp from 'mkdirp' |
17 | import * as bcrypt from 'bcrypt' | 17 | import * as bcrypt from 'bcrypt' |
18 | import * as createTorrent from 'create-torrent' | 18 | import * as createTorrent from 'create-torrent' |
19 | import * as rimraf from 'rimraf' | ||
19 | import * as openssl from 'openssl-wrapper' | 20 | import * as openssl from 'openssl-wrapper' |
20 | import * as Promise from 'bluebird' | 21 | import * as Promise from 'bluebird' |
21 | 22 | ||
@@ -83,6 +84,7 @@ const bcryptComparePromise = promisify2<any, string, boolean>(bcrypt.compare) | |||
83 | const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) | 84 | const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) |
84 | const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash) | 85 | const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash) |
85 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) | 86 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) |
87 | const 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 | } |