Skip to content

Commit

Permalink
Doesn't need to be Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
tclem committed Nov 14, 2023
1 parent 0dbb7fe commit d0dde3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/twirp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ impl ClientBuilder {
/// requests.
#[derive(Clone)]
pub struct Client {
pub base_url: Arc<Url>,
http_client: Arc<reqwest::Client>,
pub base_url: Url,
http_client: reqwest::Client,
middlewares: Vec<Arc<dyn Middleware>>,
}

Expand All @@ -113,8 +113,8 @@ impl Client {
) -> Result<Self> {
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 {
Expand Down

0 comments on commit d0dde3e

Please sign in to comment.