[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-webext/main] Remove unused `Broker.clients` variable
commit d4fc7f0acb98300f537d17640f2d5107379f5fbc
Author: meskio <meskio@xxxxxxxxxxxxxx>
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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits