Skip to content

Commit 26a782a

Browse files
committed
fix formatting
1 parent 92ffa2f commit 26a782a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

chain/ethereum/src/transport.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use graph::components::network_provider::ProviderName;
22
use graph::endpoint::{EndpointMetrics, RequestLabels};
3+
use graph_node::config::Compression;
34
use jsonrpc_core::types::Call;
45
use jsonrpc_core::Value;
5-
use graph_node::config::Compression;
66

77
use web3::transports::{http, ipc, ws};
88
use 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();

0 commit comments

Comments
 (0)