diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 10:29:36 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 10:29:36 +0100 |
commit | c1a7ab7f04fdb1601cf1e41c4e372dbd3c81f3de (patch) | |
tree | 5d721432dcc25f43ebd72b12f675d4e208faf616 /server.js | |
parent | 361b7df2a257d1c44ec1d79128a9065b563090d8 (diff) | |
download | PeerTube-c1a7ab7f04fdb1601cf1e41c4e372dbd3c81f3de.tar.gz PeerTube-c1a7ab7f04fdb1601cf1e41c4e372dbd3c81f3de.tar.zst PeerTube-c1a7ab7f04fdb1601cf1e41c4e372dbd3c81f3de.zip |
Server: use a request scheduler object instance for friends
communication
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -37,6 +37,7 @@ if (errorMessage !== null) { | |||
37 | 37 | ||
38 | // ----------- PeerTube modules ----------- | 38 | // ----------- PeerTube modules ----------- |
39 | const customValidators = require('./server/helpers/custom-validators') | 39 | const customValidators = require('./server/helpers/custom-validators') |
40 | const friends = require('./server/lib/friends') | ||
40 | const installer = require('./server/initializers/installer') | 41 | const installer = require('./server/initializers/installer') |
41 | const migrator = require('./server/initializers/migrator') | 42 | const migrator = require('./server/initializers/migrator') |
42 | const routes = require('./server/controllers') | 43 | const routes = require('./server/controllers') |
@@ -128,8 +129,8 @@ installer.installApplication(function (err) { | |||
128 | 129 | ||
129 | // ----------- Make the server listening ----------- | 130 | // ----------- Make the server listening ----------- |
130 | server.listen(port, function () { | 131 | server.listen(port, function () { |
131 | // Activate the pool requests | 132 | // Activate the communication with friends |
132 | db.Request.activate() | 133 | friends.activate() |
133 | 134 | ||
134 | logger.info('Server listening on port %d', port) | 135 | logger.info('Server listening on port %d', port) |
135 | logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) | 136 | logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) |