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

Convert the appservice handler to async/await. #7775

Merged
merged 2 commits into from
Jul 6, 2020

Conversation

clokep
Copy link
Member

@clokep clokep commented Jul 2, 2020

This was mostly straightforward, a couple of things to note:

  • _get_services_for_user and _get_services_for_3pn were synchronous, this was changed.
  • The tests were very much depending on magic mocks, so they needed a bit of work (and I ended up reformatting them a bit to use less Mock constructors).
  • The tests are using inlineCallbacks which I didn't try to fix here, but I can include it if it seems useful.

@clokep clokep requested a review from a team July 2, 2020 18:52
@clokep clokep merged commit 6d687eb into develop Jul 6, 2020
@clokep clokep deleted the clokep/async-appservice branch July 6, 2020 11:40
@clokep clokep mentioned this pull request Jul 30, 2020
48 tasks
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '43726783e': (22 commits)
  1.17.0rc1
  Fix some spelling mistakes / typos. (#7811)
  `update_membership` declaration: now always returns an event id. (#7809)
  Improve stacktraces from exceptions in background processes (#7808)
  Fix `can only concatenate list (not "tuple") to list` exception (#7810)
  Pass original request headers from workers to the main process. (#7797)
  Generate real events when we reject invites (#7804)
  Add `HomeServer.signing_key` property (#7805)
  Revert "Update the installation docs on apt-transport-https (#7801)"
  Do not use simplejson in Synapse. (#7800)
  Stop passing bytes when dumping JSON (#7799)
  Update the installation docs on apt-transport-https (#7801)
  shuffle changelog slightly
  Change Caddy links (old is deprecated) (#7789)
  Stop populating unused table `local_invites`. (#7793)
  Refactor getting replication updates from database v2. (#7740)
  Add libwebp dependency to Dockerfile (#7791)
  Add documentation for JWT login type and improve sample config. (#7776)
  Convert the appservice handler to async/await. (#7775)
  Don't ignore `set_tweak` actions with no explicit `value`. (#7766)
  ...
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