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

Fix ClientReplicationStreamProtocol.__str__ #4929

Merged
merged 1 commit into from
Mar 25, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 25, 2019

__str__ depended on self.addr, which was absent from
ClientReplicationStreamProtocol, so attempting to call str on such an object
would raise an exception.

We can calculate the peer addr from the transport, so there is no need for addr
anyway.

`__str__` depended on `self.addr`, which was absent from
ClientReplicationStreamProtocol, so attempting to call str on such an object
would raise an exception.

We can calculate the peer addr from the transport, so there is no need for addr
anyway.
@richvdh richvdh requested a review from a team March 25, 2019 15:20
@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

Merging #4929 into develop will increase coverage by 17.57%.
The diff coverage is 25%.

@@             Coverage Diff             @@
##           develop   #4929       +/-   ##
===========================================
+ Coverage    60.43%     78%   +17.57%     
===========================================
  Files          328     328               
  Lines        34067   34348      +281     
  Branches      5620    5708       +88     
===========================================
+ Hits         20589   26794     +6205     
+ Misses       12002    5924     -6078     
- Partials      1476    1630      +154

@richvdh richvdh merged commit 8cbbeda into develop Mar 25, 2019
@richvdh richvdh deleted the rav/fix_replication_str branch March 25, 2019 16:41
anoadragon453 added a commit that referenced this pull request Mar 26, 2019
* develop: (141 commits)
  Make federation endpoints more tolerant of trailing slashes v2 (#4935)
  Fix ClientReplicationStreamProtocol.__str__ (#4929)
  Fix bug where read-receipts lost their timestamps (#4927)
  Use an explicit dbname for postgres connections in the tests. (#4928)
  Fix nginx example in ACME doc. (#4923)
  Refactor out state delta handling into its own class (#4917)
  Newsfile
  Use yaml safe_load
  Allow newsfragments to end with exclamation marks! (#4912)
  Some more porting to HomeserverTestCase and remove old RESTHelper (#4913)
  Clean up backoff_on_404 and metehod calls
  Update changelog.d/4908.bugfix
  Update Apache Setup To Remove Location Syntax (#4870)
  isort
  Newsfile
  Fix typo and add description
  Deny peeking into rooms that have been blocked
  Rejig testcase to make it more extensible
  Remove debug
  Add tests
  ...
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