Skip to content

Commit cb16c0e

Browse files
committed
Fix test broke by ferristseng#131
1 parent 94cc569 commit cb16c0e

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

ipfs-api/tests/test_support/client.rs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,8 @@ use std::time::Duration;
1010
use ipfs_api::response::VersionResponse;
1111
use ipfs_api::{IpfsApi, IpfsClient, TryFromUri};
1212

13-
#[cfg(feature = "with-hyper")]
14-
use hyper::client::HttpConnector;
15-
16-
#[cfg(feature = "with-hyper-tls")]
17-
use hyper_tls::HttpsConnector;
18-
19-
cfg_if::cfg_if! {
20-
if #[cfg(feature = "with-actix")] {
21-
pub fn build_client(api_url: &str) -> IpfsClient {
22-
IpfsClient::from_str(api_url).unwrap()
23-
}
24-
} else if #[cfg(feature = "with-hyper-tls")] {
25-
pub fn build_client(api_url: &str) -> IpfsClient<HttpsConnector<HttpConnector>> {
26-
IpfsClient::from_str(api_url).unwrap()
27-
}
28-
} else if #[cfg(feature = "with-hyper")] {
29-
pub fn build_client(api_url: &str) -> IpfsClient<HttpConnector> {
30-
IpfsClient::from_str(api_url).unwrap()
31-
}
32-
}
13+
pub fn build_client(api_url: &str) -> IpfsClient {
14+
IpfsClient::from_str(api_url).unwrap()
3315
}
3416

3517
pub async fn wait_for_server<C: IpfsApi>(client: &C) -> Result<VersionResponse, String> {

0 commit comments

Comments
 (0)