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

Move SRV magic into an Agent-like thing #4428

Merged
merged 8 commits into from
Jan 23, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 21, 2019

(This PR builds on top of #4426 and #4427)

This PR replaces the matrix_federation_endpoint with a thing that is implemented in an Agent instead. This simplifies a bunch of code, and is a prerequisite for .well-known support.

@richvdh richvdh requested a review from a team January 21, 2019 23:56
@richvdh richvdh force-pushed the rav/matrix_federation_agent branch from 582a504 to 8f23d87 Compare January 22, 2019 11:10
@codecov-io
Copy link

codecov-io commented Jan 22, 2019

Codecov Report

Merging #4428 into develop will decrease coverage by 0.04%.
The diff coverage is 78.57%.

@@             Coverage Diff             @@
##           develop    #4428      +/-   ##
===========================================
- Coverage     73.7%   73.66%   -0.05%     
===========================================
  Files          300      302       +2     
  Lines        29705    29816     +111     
  Branches      4882     4895      +13     
===========================================
+ Hits         21895    21963      +68     
- Misses        6385     6426      +41     
- Partials      1425     1427       +2

Pull the magic that is currently in matrix_federation_endpoint and friends into
an agent-like thing
... instead of the matrix_federation_endpoint
this thing is now redundant.
@richvdh richvdh force-pushed the rav/matrix_federation_agent branch from 8f23d87 to c66f4bf Compare January 22, 2019 20:34
it is only ever a bytes now, so let's enforce that.
this makes it easier to stub things out for tests.
@richvdh
Copy link
Member Author

richvdh commented Jan 22, 2019

sorry about the size of this PR. You might find the individual commits easier to review.

@hawkowl
Copy link
Contributor

hawkowl commented Jan 23, 2019

https://codecov.io/gh/matrix-org/synapse/pull/4428/diff#D5-104 isn't hit via coverage, which means pick_server_from_list isn't getting any coverage. Is it possible to add a test for this?

@richvdh richvdh merged commit a0ae475 into develop Jan 23, 2019
@richvdh richvdh deleted the rav/matrix_federation_agent branch January 23, 2019 16:02
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.

3 participants