aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-18 10:29:36 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-18 10:29:36 +0100
commitc1a7ab7f04fdb1601cf1e41c4e372dbd3c81f3de (patch)
tree5d721432dcc25f43ebd72b12f675d4e208faf616 /server.js
parent361b7df2a257d1c44ec1d79128a9065b563090d8 (diff)
downloadPeerTube-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.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.js b/server.js
index 7503072af..4a0de72bb 100644
--- a/server.js
+++ b/server.js
@@ -37,6 +37,7 @@ if (errorMessage !== null) {
37 37
38// ----------- PeerTube modules ----------- 38// ----------- PeerTube modules -----------
39const customValidators = require('./server/helpers/custom-validators') 39const customValidators = require('./server/helpers/custom-validators')
40const friends = require('./server/lib/friends')
40const installer = require('./server/initializers/installer') 41const installer = require('./server/initializers/installer')
41const migrator = require('./server/initializers/migrator') 42const migrator = require('./server/initializers/migrator')
42const routes = require('./server/controllers') 43const 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)