diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,4 +1,6 @@ | |||
1 | // FIXME: https://github.com/nodejs/node/pull/16853 | 1 | // FIXME: https://github.com/nodejs/node/pull/16853 |
2 | import { VideosCaptionCache } from './server/lib/cache/videos-caption-cache' | ||
3 | |||
2 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | 4 | require('tls').DEFAULT_ECDH_CURVE = 'auto' |
3 | 5 | ||
4 | import { isTestInstance } from './server/helpers/core-utils' | 6 | import { isTestInstance } from './server/helpers/core-utils' |
@@ -181,6 +183,7 @@ async function startApplication () { | |||
181 | 183 | ||
182 | // Caches initializations | 184 | // Caches initializations |
183 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) | 185 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) |
186 | VideosCaptionCache.Instance.init(CONFIG.CACHE.VIDEO_CAPTIONS.SIZE) | ||
184 | 187 | ||
185 | // Enable Schedulers | 188 | // Enable Schedulers |
186 | BadActorFollowScheduler.Instance.enable() | 189 | BadActorFollowScheduler.Instance.enable() |