Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Port handlers.account_validity to async/await. #6504

Merged
merged 3 commits into from
Dec 11, 2019

Conversation

erikjohnston
Copy link
Member

No description provided.

@erikjohnston erikjohnston force-pushed the erikj/account_validity_async_await branch from 9295909 to 3f97b4c Compare December 10, 2019 14:40
@erikjohnston erikjohnston requested a review from a team December 10, 2019 15:18
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -54,6 +51,5 @@ def get_new_events(self, user, from_key, **kwargs):

return results, current_stream_id

@defer.inlineCallbacks
def get_pagination_rows(self, user, config, key):
async def get_pagination_rows(self, user, config, key):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this even used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You raise a good point, seems like only /initialSync uses it for presence and receipts. Given it's kind of part of the *EventSource API I'll leave it to another PR to remove it from everywhere.

@erikjohnston erikjohnston merged commit 31905a5 into develop Dec 11, 2019
@erikjohnston erikjohnston deleted the erikj/account_validity_async_await branch January 9, 2020 15:47
@clokep clokep mentioned this pull request Jul 30, 2020
48 tasks
babolivier pushed a commit that referenced this pull request Sep 1, 2021
…_await

* commit '31905a518':
  Newsfile
  Port handlers.account_validity to async/await.
  Port handlers.account_data to async/await.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants