diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-18 09:28:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-18 10:26:18 +0200 |
commit | b7f1747dc75171368df6ea2ab298971a33af56ed (patch) | |
tree | a217c842c6b5502d1d14e5c10eed916820de304f /server/lib | |
parent | 80d7cf3a15c533d43e7e7f7a240d0eb89640e1c3 (diff) | |
download | PeerTube-b7f1747dc75171368df6ea2ab298971a33af56ed.tar.gz PeerTube-b7f1747dc75171368df6ea2ab298971a33af56ed.tar.zst PeerTube-b7f1747dc75171368df6ea2ab298971a33af56ed.zip |
Create webtorrent client on player load
So we don't run Angular change detection every 250ms on webtorrent
import, when https://github.com/mafintosh/speedometer/pull/7 will be
merged
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/schedulers/update-videos-scheduler.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/lib/schedulers/update-videos-scheduler.ts b/server/lib/schedulers/update-videos-scheduler.ts index a964648fd..760475af9 100644 --- a/server/lib/schedulers/update-videos-scheduler.ts +++ b/server/lib/schedulers/update-videos-scheduler.ts | |||
@@ -1,6 +1,4 @@ | |||
1 | import { isTestInstance } from '../../helpers/core-utils' | ||
2 | import { logger } from '../../helpers/logger' | 1 | import { logger } from '../../helpers/logger' |
3 | import { JobQueue } from '../job-queue' | ||
4 | import { AbstractScheduler } from './abstract-scheduler' | 2 | import { AbstractScheduler } from './abstract-scheduler' |
5 | import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update' | 3 | import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update' |
6 | import { retryTransactionWrapper } from '../../helpers/database-utils' | 4 | import { retryTransactionWrapper } from '../../helpers/database-utils' |