From afffe98839db7ccbfa9fb8b7d1413b97900fdc73 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Nov 2017 11:35:10 +0100 Subject: Speed up activity pub http requests --- server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.ts') diff --git a/server.ts b/server.ts index 62219f7df..84535c7a5 100644 --- a/server.ts +++ b/server.ts @@ -46,7 +46,7 @@ db.init(false).then(() => onDatabaseInitDone()) // ----------- PeerTube modules ----------- import { migrate, installApplication } from './server/initializers' -import { httpRequestJobScheduler, transcodingJobScheduler, VideosPreviewCache } from './server/lib' +import { activitypubHttpJobScheduler, transcodingJobScheduler, VideosPreviewCache } from './server/lib' import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' // ----------- Command line ----------- @@ -154,7 +154,7 @@ function onDatabaseInitDone () { // ----------- Make the server listening ----------- server.listen(port, () => { VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) - httpRequestJobScheduler.activate() + activitypubHttpJobScheduler.activate() transcodingJobScheduler.activate() logger.info('Server listening on port %d', port) -- cgit v1.2.3