File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ serde = "1.0.97"
37
37
serde_json = " 1.0.40"
38
38
serde_urlencoded = " 0.6.1"
39
39
url = " 2.0.0"
40
- http-client = { git = " https://github.com/Fishrock123/http-client.git" , branch = " hyper-improvements " , default-features = false }
40
+ http-client = { git = " https://github.com/Fishrock123/http-client.git" , branch = " no-clone " , default-features = false }
41
41
http-types = " 2.0.0"
42
42
async-std = { version = " 1.6.0" , default-features = false , features = [" std" ] }
43
43
async-trait = " 0.1.36"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ cfg_if! {
22
22
cfg_if ! {
23
23
if #[ cfg( any( feature = "curl-client" , feature = "hyper-client" ) ) ] {
24
24
use once_cell:: sync:: Lazy ;
25
- static GLOBAL_CLIENT : Lazy <DefaultClient > = Lazy :: new( DefaultClient :: new) ;
25
+ static GLOBAL_CLIENT : Lazy <Arc < DefaultClient >> = Lazy :: new( || Arc :: new ( DefaultClient :: new( ) ) ) ;
26
26
}
27
27
}
28
28
@@ -127,7 +127,7 @@ impl Client {
127
127
pub ( crate ) fn new_shared ( ) -> Self {
128
128
cfg_if ! {
129
129
if #[ cfg( any( feature = "curl-client" , feature = "hyper-client" ) ) ] {
130
- Self :: with_http_client( Arc :: new ( GLOBAL_CLIENT . clone( ) ) )
130
+ Self :: with_http_client( GLOBAL_CLIENT . clone( ) )
131
131
} else {
132
132
Self :: new( )
133
133
}
You can’t perform that action at this time.
0 commit comments