From d0dde3ecebc66e1f6b03459e12e70ac06a44b225 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Tue, 14 Nov 2023 08:01:55 -0800 Subject: [PATCH] Doesn't need to be Arc --- crates/twirp/src/client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/twirp/src/client.rs b/crates/twirp/src/client.rs index 42fed26..16adf90 100644 --- a/crates/twirp/src/client.rs +++ b/crates/twirp/src/client.rs @@ -86,8 +86,8 @@ impl ClientBuilder { /// requests. #[derive(Clone)] pub struct Client { - pub base_url: Arc, - http_client: Arc, + pub base_url: Url, + http_client: reqwest::Client, middlewares: Vec>, } @@ -113,8 +113,8 @@ impl Client { ) -> Result { if base_url.path().ends_with('/') { Ok(Client { - base_url: Arc::new(base_url), - http_client: Arc::new(http_client), + base_url, + http_client, middlewares, }) } else {