wrap region map in Arc (#136)

This commit is contained in:
Alfred Mathew 2025-03-16 14:21:59 +04:00 committed by GitHub
parent c9172cf189
commit d2afb4d3f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,7 @@ impl ClientBuilder {
client, client,
base_url: self.base_url, base_url: self.base_url,
provider: self.provider, provider: self.provider,
region_map: DashMap::new(), region_map: Arc::default(),
}) })
} }
} }
@ -182,7 +182,7 @@ pub struct Client {
client: reqwest::Client, client: reqwest::Client,
base_url: BaseUrl, base_url: BaseUrl,
provider: Option<Arc<Box<(dyn Provider + Send + Sync + 'static)>>>, provider: Option<Arc<Box<(dyn Provider + Send + Sync + 'static)>>>,
region_map: DashMap<String, String>, region_map: Arc<DashMap<String, String>>,
} }
impl Client { impl Client {