File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 11use graph:: components:: network_provider:: ProviderName ;
22use graph:: endpoint:: { EndpointMetrics , RequestLabels } ;
3+ use graph_node:: config:: Compression ;
34use jsonrpc_core:: types:: Call ;
45use jsonrpc_core:: Value ;
5- use graph_node:: config:: Compression ;
66
77use web3:: transports:: { http, ipc, ws} ;
88use web3:: RequestId ;
@@ -58,8 +58,7 @@ impl Transport {
5858 compression : Compression ,
5959 ) -> Self {
6060 // Unwrap: This only fails if something is wrong with the system's TLS config.
61- let mut client_builder = reqwest:: Client :: builder ( )
62- . default_headers ( headers) ;
61+ let mut client_builder = reqwest:: Client :: builder ( ) . default_headers ( headers) ;
6362
6463 match compression {
6564 Compression :: Gzip => {
@@ -68,11 +67,10 @@ impl Transport {
6867 }
6968 Compression :: None => {
7069 // No compression
71- }
72- // Future compression methods can be handled here:
73- // Compression::Brotli => {
74- // client_builder = client_builder.brotli(true);
75- // }
70+ } // Future compression methods can be handled here:
71+ // Compression::Brotli => {
72+ // client_builder = client_builder.brotli(true);
73+ // }
7674 }
7775
7876 let client = client_builder. build ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments