diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 09:14:41 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 09:14:41 +0200 |
commit | 15a302943d84bc0978b84fe33110c4daa451d311 (patch) | |
tree | f4c4f626d94fced1c398d7fa9644c6d8fb9d5871 /server/controllers/api | |
parent | ed5f91633d96436408c763bb96d2cc463cb7dc00 (diff) | |
download | PeerTube-15a302943d84bc0978b84fe33110c4daa451d311.tar.gz PeerTube-15a302943d84bc0978b84fe33110c4daa451d311.tar.zst PeerTube-15a302943d84bc0978b84fe33110c4daa451d311.zip |
BaseRequestScheduler -> AbstractRequestScheduler
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/requests.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/requests.ts b/server/controllers/api/requests.ts index 2c18fe046..d3f0d958c 100644 --- a/server/controllers/api/requests.ts +++ b/server/controllers/api/requests.ts | |||
@@ -2,7 +2,7 @@ import * as express from 'express' | |||
2 | import { parallel } from 'async' | 2 | import { parallel } from 'async' |
3 | 3 | ||
4 | import { | 4 | import { |
5 | BaseRequestScheduler, | 5 | AbstractRequestScheduler, |
6 | getRequestScheduler, | 6 | getRequestScheduler, |
7 | getRequestVideoQaduScheduler, | 7 | getRequestVideoQaduScheduler, |
8 | getRequestVideoEventScheduler | 8 | getRequestVideoEventScheduler |
@@ -39,7 +39,7 @@ function getStatsRequests (req: express.Request, res: express.Response, next: ex | |||
39 | 39 | ||
40 | // --------------------------------------------------------------------------- | 40 | // --------------------------------------------------------------------------- |
41 | 41 | ||
42 | function buildRequestSchedulerFunction (requestScheduler: BaseRequestScheduler) { | 42 | function buildRequestSchedulerFunction (requestScheduler: AbstractRequestScheduler) { |
43 | return function (callback) { | 43 | return function (callback) { |
44 | requestScheduler.remainingRequestsCount(function (err, count) { | 44 | requestScheduler.remainingRequestsCount(function (err, count) { |
45 | if (err) return callback(err) | 45 | if (err) return callback(err) |