diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-19 15:21:09 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-19 15:21:09 +0100 |
commit | 0b2f03d3712f438f67eccf86b67acd047284f9b4 (patch) | |
tree | b6ae2ca2405d6a915e6be34e1d3c4e04312f6f03 /server.ts | |
parent | 361805c48b14c5402c9984485c67c45a1a3113cc (diff) | |
download | PeerTube-0b2f03d3712f438f67eccf86b67acd047284f9b4.tar.gz PeerTube-0b2f03d3712f438f67eccf86b67acd047284f9b4.tar.zst PeerTube-0b2f03d3712f438f67eccf86b67acd047284f9b4.zip |
Speedup peertube startup
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -204,9 +204,11 @@ async function startApplication () { | |||
204 | 204 | ||
205 | // Email initialization | 205 | // Email initialization |
206 | Emailer.Instance.init() | 206 | Emailer.Instance.init() |
207 | await Emailer.Instance.checkConnectionOrDie() | ||
208 | 207 | ||
209 | await JobQueue.Instance.init() | 208 | await Promise.all([ |
209 | Emailer.Instance.checkConnectionOrDie(), | ||
210 | JobQueue.Instance.init() | ||
211 | ]) | ||
210 | 212 | ||
211 | // Caches initializations | 213 | // Caches initializations |
212 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE, CACHE.PREVIEWS.MAX_AGE) | 214 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE, CACHE.PREVIEWS.MAX_AGE) |