diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -117,6 +117,7 @@ import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redund | |||
117 | import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler' | 117 | import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler' |
118 | import { AutoFollowIndexInstances } from './server/lib/schedulers/auto-follow-index-instances' | 118 | import { AutoFollowIndexInstances } from './server/lib/schedulers/auto-follow-index-instances' |
119 | import { RemoveDanglingResumableUploadsScheduler } from './server/lib/schedulers/remove-dangling-resumable-uploads-scheduler' | 119 | import { RemoveDanglingResumableUploadsScheduler } from './server/lib/schedulers/remove-dangling-resumable-uploads-scheduler' |
120 | import { VideoViewsBufferScheduler } from './server/lib/schedulers/video-views-buffer-scheduler' | ||
120 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' | 121 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' |
121 | import { PeerTubeSocket } from './server/lib/peertube-socket' | 122 | import { PeerTubeSocket } from './server/lib/peertube-socket' |
122 | import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' | 123 | import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' |
@@ -128,6 +129,7 @@ import { LiveManager } from './server/lib/live' | |||
128 | import { HttpStatusCode } from './shared/models/http/http-error-codes' | 129 | import { HttpStatusCode } from './shared/models/http/http-error-codes' |
129 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' | 130 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' |
130 | import { ServerConfigManager } from '@server/lib/server-config-manager' | 131 | import { ServerConfigManager } from '@server/lib/server-config-manager' |
132 | import { VideoViews } from '@server/lib/video-views' | ||
131 | 133 | ||
132 | // ----------- Command line ----------- | 134 | // ----------- Command line ----------- |
133 | 135 | ||
@@ -296,11 +298,11 @@ async function startApplication () { | |||
296 | PeerTubeVersionCheckScheduler.Instance.enable() | 298 | PeerTubeVersionCheckScheduler.Instance.enable() |
297 | AutoFollowIndexInstances.Instance.enable() | 299 | AutoFollowIndexInstances.Instance.enable() |
298 | RemoveDanglingResumableUploadsScheduler.Instance.enable() | 300 | RemoveDanglingResumableUploadsScheduler.Instance.enable() |
301 | VideoViewsBufferScheduler.Instance.enable() | ||
299 | 302 | ||
300 | // Redis initialization | ||
301 | Redis.Instance.init() | 303 | Redis.Instance.init() |
302 | |||
303 | PeerTubeSocket.Instance.init(server) | 304 | PeerTubeSocket.Instance.init(server) |
305 | VideoViews.Instance.init() | ||
304 | 306 | ||
305 | updateStreamingPlaylistsInfohashesIfNeeded() | 307 | updateStreamingPlaylistsInfohashesIfNeeded() |
306 | .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) | 308 | .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) |