File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ serde = "1.0.97"
36
36
serde_json = " 1.0.40"
37
37
serde_urlencoded = " 0.6.1"
38
38
url = " 2.0.0"
39
- http-client = { version = " 5.0.0 " , default-features = false }
39
+ http-client = { git = " https://github.com/Fishrock123/http-client.git " , branch = " no-clone " , default-features = false }
40
40
http-types = " 2.0.0"
41
41
async-std = { version = " 1.6.0" , default-features = false , features = [" std" ] }
42
42
async-trait = " 0.1.36"
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ cfg_if! {
12
12
if #[ cfg( feature = "curl-client" ) ] {
13
13
use http_client:: isahc:: IsahcClient as DefaultClient ;
14
14
use once_cell:: sync:: Lazy ;
15
- static GLOBAL_CLIENT : Lazy <http_client:: isahc:: IsahcClient > =
16
- Lazy :: new( http_client:: isahc:: IsahcClient :: new) ;
15
+ static GLOBAL_CLIENT : Lazy <Arc <DefaultClient >> = Lazy :: new( || Arc :: new( DefaultClient :: new( ) ) ) ;
17
16
} else if #[ cfg( feature = "wasm-client" ) ] {
18
17
use http_client:: wasm:: WasmClient as DefaultClient ;
19
18
} else if #[ cfg( feature = "h1-client" ) ] {
@@ -125,7 +124,7 @@ impl Client {
125
124
pub ( crate ) fn new_shared ( ) -> Self {
126
125
cfg_if ! {
127
126
if #[ cfg( feature = "curl-client" ) ] {
128
- Self :: with_http_client ( GLOBAL_CLIENT . clone( ) )
127
+ Self :: with_http_client_internal ( GLOBAL_CLIENT . clone( ) )
129
128
} else {
130
129
Self :: new( )
131
130
}
You can’t perform that action at this time.
0 commit comments