Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor matrixfederationclient to fix logging #3906
We want to wait until we have read the response body before we log the request as complete, otherwise a confusing thing happens where the request appears to have completed, but we later fail it.
To do this, we factor the salient details of a request out to a separate object, which can then keep track of the txn_id, so that it can be logged.