diff options
author | Erik Johnston <erik@matrix.org> | 2022-12-15 13:15:47 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2022-12-15 13:15:47 +0000 |
commit | 684297439140971b12a37ea661f28b81eaefba47 (patch) | |
tree | e34a1acfe7f09ac489cfe7a6a3955ccacbe46d4e | |
parent | WIP Rust HTTP for federation (diff) | |
download | synapse-684297439140971b12a37ea661f28b81eaefba47.tar.xz |
Fixup
-rw-r--r-- | rust/src/http/mod.rs | 3 | ||||
-rw-r--r-- | synapse/http/matrixfederationclient.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/rust/src/http/mod.rs b/rust/src/http/mod.rs index b533a3d36d..508f7cb048 100644 --- a/rust/src/http/mod.rs +++ b/rust/src/http/mod.rs @@ -110,8 +110,6 @@ impl HttpClient { let bytes = hyper::body::to_bytes(body).await?; let content = Bytes(bytes.to_vec()); - info!("DONE"); - Ok(MatrixResponse { code, phrase, @@ -137,7 +135,6 @@ impl HttpClient { body: Option<Vec<u8>>, ) -> PyResult<&'a PyAny> { pyo3::prepare_freethreaded_python(); - info!("REQUEST"); let client = self.clone(); diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index 670164923a..88b1c22802 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -638,7 +638,8 @@ class MatrixFederationHttpClient: # response = await make_deferred_yieldable(request_deferred) - response_d = self._rust_client.request( + response_d = run_in_background( + self._rust_client.request, url_str, request.method, headers_dict, |