[tor-commits] [snowflake-webext/main] Remove unused `Broker.clients` variable
meskio at torproject.org
meskio at torproject.org
Wed Jul 21 09:30:15 UTC 2021
commit d4fc7f0acb98300f537d17640f2d5107379f5fbc
Author: meskio <meskio at torproject.org>
Date: Tue Jul 20 18:51:46 2021 +0200
Remove unused `Broker.clients` variable
This clients variable was never updated. The actual counter of clients is the
length of Snowflake.proxyPairs, wich is used in other places to check that we
are not exceeding the maximum number of clients.
---
broker.js | 2 --
1 file changed, 2 deletions(-)
diff --git a/broker.js b/broker.js
index 84eaed2..d83f03c 100644
--- a/broker.js
+++ b/broker.js
@@ -21,7 +21,6 @@ class Broker {
this.config = config;
this.url = config.brokerUrl;
- this.clients = 0;
this.natType = "unknown";
if (0 === this.url.indexOf('localhost', 0)) {
// Ensure url has the right protocol + trailing slash.
@@ -144,4 +143,3 @@ Broker.MESSAGE = {
UNEXPECTED: 'Unexpected status.'
};
-Broker.prototype.clients = 0;
More information about the tor-commits
mailing list