summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-03 17:42:32 +0100
committerErik Johnston <erik@matrix.org>2019-10-03 17:42:32 +0100
commitab8a64772b9e663e74fbdafef9a729bd49369e65 (patch)
treea2b2a03effb36b9c8ac81c9669fd6f0ee989490e /synapse/handlers
parentNewsfile (diff)
downloadsynapse-ab8a64772b9e663e74fbdafef9a729bd49369e65.tar.xz
Remove unused variable
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/register.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index 6dd7ef3745..53410f120b 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -217,7 +217,6 @@ class RegistrationHandler(BaseHandler):
 
         else:
             # autogen a sequential user ID
-            attempts = 0
             user = None
             while not user:
                 localpart = yield self._generate_user_id()
@@ -238,7 +237,6 @@ class RegistrationHandler(BaseHandler):
                     # if user id is taken, just generate another
                     user = None
                     user_id = None
-                    attempts += 1
 
         if not self.hs.config.user_consent_at_registration:
             yield self._auto_join_rooms(user_id)