Skip to content
This repository was 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
richvdh merged 19 commits intodevelopfrom
rav/federation_client_async
Feb 5, 2020
Merged

Port much of synapse.federation.federation_client to async/await#6840
richvdh merged 19 commits intodevelopfrom
rav/federation_client_async

Conversation

@richvdh
Copy link
Member

@richvdh richvdh commented Feb 3, 2020

Another big async/await PR I'm afraid.

Based on #6837.

@richvdh richvdh force-pushed the rav/federation_client_async branch from 799c03e to ea23210 Compare February 3, 2020 22:31
@richvdh richvdh requested a review from a team February 4, 2020 12:07
room_version = await self.store.get_room_version_id(room_id)

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.

😮

richvdh and others added 2 commits February 5, 2020 15:47
@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