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

Refactoring in MatrixFederationAgent #4488

Merged
merged 4 commits into from
Jan 28, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 27, 2019

Split the routing out and handle IP literals separately.

@richvdh richvdh changed the title Refactorint in MatrixFederationAgent Refactoring in MatrixFederationAgent Jan 28, 2019
@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

Merging #4488 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #4488      +/-   ##
===========================================
+ Coverage    74.71%   74.73%   +0.01%     
===========================================
  Files          336      336              
  Lines        34099    34122      +23     
  Branches      5544     5547       +3     
===========================================
+ Hits         25477    25501      +24     
+ Misses        7048     7047       -1     
  Partials      1574     1574

@richvdh richvdh requested a review from a team January 28, 2019 00:13

@attr.s
class _RoutingResult(object):
host_header = attr.ib()
Copy link
Member

Choose a reason for hiding this comment

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

A docstring would be good here. Specifically how this interacts with SRV records returning multiple answers; this seems to be a possible route, rather than all possible routes.

This is going to get too big and unmanageable.
We don't want to be doing .well-known lookups on these guys.
@richvdh richvdh force-pushed the rav/fed_routing/refactor branch from 82b833e to ff05ad1 Compare January 28, 2019 10:34
@richvdh richvdh merged commit d04ff2a into develop Jan 28, 2019
@richvdh richvdh deleted the rav/fed_routing/refactor branch January 29, 2019 12:07
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