mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 20:25:03 -04:00
Convert streams to async. (#8014)
This commit is contained in:
parent
916cf2d439
commit
e19de43eb5
10 changed files with 27 additions and 30 deletions
|
@ -109,7 +109,7 @@ class InitialSyncHandler(BaseHandler):
|
|||
|
||||
rooms_ret = []
|
||||
|
||||
now_token = await self.hs.get_event_sources().get_current_token()
|
||||
now_token = self.hs.get_event_sources().get_current_token()
|
||||
|
||||
presence_stream = self.hs.get_event_sources().sources["presence"]
|
||||
pagination_config = PaginationConfig(from_token=now_token)
|
||||
|
@ -360,7 +360,7 @@ class InitialSyncHandler(BaseHandler):
|
|||
current_state.values(), time_now
|
||||
)
|
||||
|
||||
now_token = await self.hs.get_event_sources().get_current_token()
|
||||
now_token = self.hs.get_event_sources().get_current_token()
|
||||
|
||||
limit = pagin_config.limit if pagin_config else None
|
||||
if limit is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue