Also do check inside linearizer
This commit is contained in:
parent
44cd6e1358
commit
3e0c0660b3
|
@ -350,9 +350,10 @@ class RegistrationHandler(BaseHandler):
|
||||||
def _generate_user_id(self, reseed=False):
|
def _generate_user_id(self, reseed=False):
|
||||||
if reseed or self._next_generated_user_id is None:
|
if reseed or self._next_generated_user_id is None:
|
||||||
with (yield self._generate_user_id_linearizer.queue(())):
|
with (yield self._generate_user_id_linearizer.queue(())):
|
||||||
self._next_generated_user_id = (
|
if reseed or self._next_generated_user_id is None:
|
||||||
yield self.store.find_next_generated_user_id_localpart()
|
self._next_generated_user_id = (
|
||||||
)
|
yield self.store.find_next_generated_user_id_localpart()
|
||||||
|
)
|
||||||
|
|
||||||
id = self._next_generated_user_id
|
id = self._next_generated_user_id
|
||||||
self._next_generated_user_id += 1
|
self._next_generated_user_id += 1
|
||||||
|
|
Loading…
Reference in New Issue