mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
generate id in the main thread
This commit is contained in:
parent
a4a31fa8dc
commit
4836864f56
@ -124,9 +124,9 @@ class PusherStore(SQLBaseStore):
|
|||||||
app_display_name, device_display_name,
|
app_display_name, device_display_name,
|
||||||
pushkey, pushkey_ts, lang, data, last_stream_ordering,
|
pushkey, pushkey_ts, lang, data, last_stream_ordering,
|
||||||
profile_tag=""):
|
profile_tag=""):
|
||||||
|
with self._pushers_id_gen.get_next() as stream_id:
|
||||||
def f(txn):
|
def f(txn):
|
||||||
txn.call_after(self.get_users_with_pushers_in_room.invalidate_all)
|
txn.call_after(self.get_users_with_pushers_in_room.invalidate_all)
|
||||||
with self._pushers_id_gen.get_next() as stream_id:
|
|
||||||
return self._simple_upsert_txn(
|
return self._simple_upsert_txn(
|
||||||
txn,
|
txn,
|
||||||
"pushers",
|
"pushers",
|
||||||
|
Loading…
Reference in New Issue
Block a user