Also add proxy to zed http client (#7184)

Follow up to #6765 because I couldn't figure out how to add to that PR.

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-01-31 21:40:12 -07:00 committed by GitHub
parent 5e81d780bd
commit 3df7da236d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,7 @@ pub fn zed_client(zed_host: &str) -> Arc<ZedHttpClient> {
isahc::HttpClient::builder() isahc::HttpClient::builder()
.connect_timeout(Duration::from_secs(5)) .connect_timeout(Duration::from_secs(5))
.low_speed_timeout(100, Duration::from_secs(5)) .low_speed_timeout(100, Duration::from_secs(5))
.proxy(http_proxy_from_env())
.build() .build()
.unwrap(), .unwrap(),
), ),