@@ -13,6 +13,7 @@ use http::HeaderValue;
13
13
use http_body_util:: BodyExt ;
14
14
use http_body_util:: Full ;
15
15
use hyper:: Version ;
16
+ use hyper_tls:: HttpsConnector ;
16
17
use hyper_util:: client:: legacy:: { connect:: HttpConnector , Client } ;
17
18
use tokio:: sync:: Semaphore ;
18
19
@@ -28,7 +29,7 @@ use crate::{executors::common::SubgraphExecutor, json_writer::write_and_escape_s
28
29
#[ derive( Debug ) ]
29
30
pub struct HTTPSubgraphExecutor {
30
31
pub endpoint : http:: Uri ,
31
- pub http_client : Arc < Client < HttpConnector , Full < Bytes > > > ,
32
+ pub http_client : Arc < Client < HttpsConnector < HttpConnector > , Full < Bytes > > > ,
32
33
pub header_map : HeaderMap ,
33
34
pub semaphore : Arc < Semaphore > ,
34
35
pub config : Arc < TrafficShapingExecutorConfig > ,
@@ -42,7 +43,7 @@ const FIRST_QUOTE_STR: &[u8] = b"{\"query\":";
42
43
impl HTTPSubgraphExecutor {
43
44
pub fn new (
44
45
endpoint : http:: Uri ,
45
- http_client : Arc < Client < HttpConnector , Full < Bytes > > > ,
46
+ http_client : Arc < Client < HttpsConnector < HttpConnector > , Full < Bytes > > > ,
46
47
semaphore : Arc < Semaphore > ,
47
48
config : Arc < TrafficShapingExecutorConfig > ,
48
49
in_flight_requests : Arc <
@@ -58,6 +59,7 @@ impl HTTPSubgraphExecutor {
58
59
http:: header:: CONNECTION ,
59
60
HeaderValue :: from_static ( "keep-alive" ) ,
60
61
) ;
62
+
61
63
Self {
62
64
endpoint,
63
65
http_client,
0 commit comments