From fe783f6b0daca17089a67c468382c98282b1895f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 18 Feb 2017 18:37:26 +0100 Subject: [PATCH] This is not a prototype anymore, but a real project! --- README.md | 4 ++-- server/lib/friends.js | 2 +- server/lib/request-scheduler.js | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 778762ebf..d37e7ae2b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

-Prototype of a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent. +Decentralized video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent.

@@ -92,7 +92,7 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t - [X] Connection - [X] Account rights (upload...) - [X] Make the network auto sufficient (eject bad pods etc) -- [ ] Validate the prototype (test PeerTube in a real world with many pods and videos) +- [X] Validate the prototype (test PeerTube in a real world) - [ ] Manage API breaks - [ ] Add "DDOS" security (check if a pod don't send too many requests for example) - [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') const RequestScheduler = require('./request-scheduler') const ENDPOINT_ACTIONS = constants.REQUEST_ENDPOINT_ACTIONS[constants.REQUEST_ENDPOINTS.VIDEOS] -const requestScheduler = new RequestScheduler('') +const requestScheduler = new RequestScheduler() const friends = { 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') module.exports = class RequestScheduler { - constructor (name) { - this.name = name - + constructor () { this.lastRequestTimestamp = 0 this.timer = null }