diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 18:37:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-26 20:01:26 +0100 |
commit | fe783f6b0daca17089a67c468382c98282b1895f (patch) | |
tree | ed1e6a635a43f6ec8c0a8f47026fc19381068811 | |
parent | 2fec520605bc8919cc71ab6565bf55d8a79925ca (diff) | |
download | PeerTube-fe783f6b0daca17089a67c468382c98282b1895f.tar.gz PeerTube-fe783f6b0daca17089a67c468382c98282b1895f.tar.zst PeerTube-fe783f6b0daca17089a67c468382c98282b1895f.zip |
This is not a prototype anymore, but a real project!
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | server/lib/friends.js | 2 | ||||
-rw-r--r-- | server/lib/request-scheduler.js | 4 |
3 files changed, 4 insertions, 6 deletions
@@ -3,7 +3,7 @@ | |||
3 | </h1> | 3 | </h1> |
4 | 4 | ||
5 | <h4 align="center"> | 5 | <h4 align="center"> |
6 | Prototype of a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser with <a href="https://github.com/feross/webtorrent">WebTorrent</a>. | 6 | Decentralized video streaming platform using P2P (BitTorrent) directly in the web browser with <a href="https://github.com/feross/webtorrent">WebTorrent</a>. |
7 | </h4> | 7 | </h4> |
8 | 8 | ||
9 | <p align="center"> | 9 | <p align="center"> |
@@ -92,7 +92,7 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t | |||
92 | - [X] Connection | 92 | - [X] Connection |
93 | - [X] Account rights (upload...) | 93 | - [X] Account rights (upload...) |
94 | - [X] Make the network auto sufficient (eject bad pods etc) | 94 | - [X] Make the network auto sufficient (eject bad pods etc) |
95 | - [ ] Validate the prototype (test PeerTube in a real world with many pods and videos) | 95 | - [X] Validate the prototype (test PeerTube in a real world) |
96 | - [ ] Manage API breaks | 96 | - [ ] Manage API breaks |
97 | - [ ] Add "DDOS" security (check if a pod don't send too many requests for example) | 97 | - [ ] Add "DDOS" security (check if a pod don't send too many requests for example) |
98 | - [X] Admin panel | 98 | - [X] Admin panel |
diff --git a/server/lib/friends.js b/server/lib/friends.js index 7dfa62a2a..d53ab4553 100644 --- a/server/lib/friends.js +++ b/server/lib/friends.js | |||
@@ -14,7 +14,7 @@ const requests = require('../helpers/requests') | |||
14 | const RequestScheduler = require('./request-scheduler') | 14 | const RequestScheduler = require('./request-scheduler') |
15 | 15 | ||
16 | const ENDPOINT_ACTIONS = constants.REQUEST_ENDPOINT_ACTIONS[constants.REQUEST_ENDPOINTS.VIDEOS] | 16 | const ENDPOINT_ACTIONS = constants.REQUEST_ENDPOINT_ACTIONS[constants.REQUEST_ENDPOINTS.VIDEOS] |
17 | const requestScheduler = new RequestScheduler('') | 17 | const requestScheduler = new RequestScheduler() |
18 | 18 | ||
19 | const friends = { | 19 | const friends = { |
20 | activate, | 20 | activate, |
diff --git a/server/lib/request-scheduler.js b/server/lib/request-scheduler.js index c8bc4af28..28dabe339 100644 --- a/server/lib/request-scheduler.js +++ b/server/lib/request-scheduler.js | |||
@@ -9,9 +9,7 @@ const requests = require('../helpers/requests') | |||
9 | 9 | ||
10 | module.exports = class RequestScheduler { | 10 | module.exports = class RequestScheduler { |
11 | 11 | ||
12 | constructor (name) { | 12 | constructor () { |
13 | this.name = name | ||
14 | |||
15 | this.lastRequestTimestamp = 0 | 13 | this.lastRequestTimestamp = 0 |
16 | this.timer = null | 14 | this.timer = null |
17 | } | 15 | } |