From 684297439140971b12a37ea661f28b81eaefba47 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 15 Dec 2022 13:15:47 +0000 Subject: Fixup --- rust/src/http/mod.rs | 3 --- 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>, ) -> 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, -- cgit 1.5.1