Skip to content

Commit cfb88d9

Browse files
fubhyclaude
andcommitted
node, chain: Fix compilation errors in RPC compression implementation
- Add missing Compression parameter to all Transport::new_rpc test calls - Import Compression type in config tests module - Ensures all tests compile and pass with the new compression parameter 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent acb0979 commit cfb88d9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

chain/ethereum/src/network.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ mod tests {
393393
HeaderMap::new(),
394394
metrics.clone(),
395395
"",
396+
graph::endpoint::Compression::None,
396397
);
397398
let provider_metrics = Arc::new(ProviderEthRpcMetrics::new(mock_registry.clone()));
398399

@@ -499,6 +500,7 @@ mod tests {
499500
HeaderMap::new(),
500501
metrics.clone(),
501502
"",
503+
graph::endpoint::Compression::None,
502504
);
503505
let provider_metrics = Arc::new(ProviderEthRpcMetrics::new(mock_registry.clone()));
504506

@@ -570,6 +572,7 @@ mod tests {
570572
HeaderMap::new(),
571573
metrics.clone(),
572574
"",
575+
graph::endpoint::Compression::None,
573576
);
574577
let provider_metrics = Arc::new(ProviderEthRpcMetrics::new(mock_registry.clone()));
575578

@@ -637,6 +640,7 @@ mod tests {
637640
HeaderMap::new(),
638641
metrics.clone(),
639642
"",
643+
graph::endpoint::Compression::None,
640644
);
641645
let provider_metrics = Arc::new(ProviderEthRpcMetrics::new(mock_registry.clone()));
642646

@@ -931,6 +935,7 @@ mod tests {
931935
HeaderMap::new(),
932936
endpoint_metrics.clone(),
933937
"",
938+
graph::endpoint::Compression::None,
934939
);
935940

936941
Arc::new(

node/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ mod tests {
12261226
Chain, Config, FirehoseProvider, Provider, ProviderDetails, Shard, Transport, Web3Provider,
12271227
};
12281228
use graph::blockchain::BlockchainKind;
1229+
use graph::endpoint::Compression;
12291230
use graph::firehose::SubgraphLimit;
12301231
use graph::http::{HeaderMap, HeaderValue};
12311232
use graph::prelude::regex::Regex;

0 commit comments

Comments
 (0)