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

Port much of synapse.federation.federation_client to async/await #6840

Merged
merged 19 commits into from
Feb 5, 2020

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Feb 3, 2020

Another big async/await PR I'm afraid.

Based on #6837.

@richvdh richvdh requested a review from a team February 4, 2020 12:07
synapse/federation/federation_client.py Outdated Show resolved Hide resolved

content = yield self._do_send_invite(destination, pdu, room_version)
content = await self._do_send_invite(destination, pdu, room_version)
Copy link
Member

Choose a reason for hiding this comment

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

Why isn't _do_send_invite async'ed?

Copy link
Member Author

Choose a reason for hiding this comment

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

because I forgot it.

Done in 6bbd890.

Copy link
Member

Choose a reason for hiding this comment

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

because I forgot it.

(For some reason I'm imaging you singing that to the tune of https://www.youtube.com/watch?v=D_XI_290cfw)

Copy link
Member Author

Choose a reason for hiding this comment

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

Have you ever seen Billie Piper and me in the same room?

Copy link
Member

Choose a reason for hiding this comment

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

😮

synapse/federation/federation_client.py Outdated Show resolved Hide resolved
@richvdh richvdh requested a review from a team February 5, 2020 15:51
@richvdh richvdh merged commit 577f460 into develop Feb 5, 2020
@richvdh richvdh deleted the rav/federation_client_async branch February 6, 2020 13:19
@clokep clokep mentioned this pull request Jul 30, 2020
48 tasks
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '577f46036':
  make FederationClient._do_send_invite async
  Apply suggestions from code review
  make FederationClient.send_invite async
  newsfile
  make FederationClient.get_missing_events async
  make FederationClient._do_send_leave async
  make FederationClient.send_leave.send_request async
  make FederationClient._do_send_join async
  make FederationClient.send_join.send_request async
  make FederationClient.make_membership_event.send_request async
  make FederationClient._try_destination_list async
  make FederationClient.send_leave async
  make FederationClient.send_join async
  make FederationClient.make_membership_event async
  make FederationClient.get_event_auth async
  make FederationClient.get_room_state_ids async
  make FederationClient.get_pdu async
  make FederationClient.backfill async
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