Skip to content

Commit fe8bb61

Browse files
committed
Share base_url as well
1 parent 25ca35e commit fe8bb61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/twirp/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl TwirpClientBuilder {
8787
/// requests.
8888
#[derive(Clone)]
8989
pub struct TwirpClient {
90-
pub base_url: Url,
90+
pub base_url: Arc<Url>,
9191
client: Arc<reqwest::Client>,
9292
middlewares: Vec<Arc<dyn Middleware>>,
9393
}
@@ -128,7 +128,7 @@ impl TwirpClient {
128128
headers.insert(CONTENT_TYPE, CONTENT_TYPE_PROTOBUF.try_into()?);
129129
let client = b.default_headers(headers).build()?;
130130
Ok(TwirpClient {
131-
base_url,
131+
base_url: Arc::new(base_url),
132132
client: Arc::new(client),
133133
middlewares,
134134
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy