Skip to content

Commit

Permalink
fix: remove dependency on native-tls entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-eiger committed May 27, 2024
1 parent 5d23313 commit 3e9d6a5
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 140 deletions.
153 changes: 29 additions & 124 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ panic = 'unwind'
opt-level = 3

[workspace.dependencies]
graphcast-sdk = "0.7.1"
graphcast-sdk = { git= "https://github.com/graphops/graphcast-sdk" }
clap = { version = "4.4", features = [
"cargo",
"unstable-doc",
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN apt-get update \
curl \
libpq-dev \
pkg-config \
libssl-dev \
clang \
build-essential \
libc6-dev \
Expand Down
2 changes: 1 addition & 1 deletion subgraph-radio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tokio = { version = "1.28.1", features = ["full", "rt"] }
anyhow = "1.0"
graphql_client = "0.12.0"
serde_derive = "1.0"
reqwest = { version = "0.11.17", features = ["json"] }
reqwest = { version = "0.11.24", default-features = false, features = ["json", "rustls-tls"] }
thiserror = "1.0.40"
ethers = "2.0.4"
ethers-contract = "2.0.4"
Expand Down
2 changes: 1 addition & 1 deletion subgraph-radio/src/operator/attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ pub fn compare_attestations(
ipfs_hash: &str,
allocated_subgraphs: HashSet<String>,
) -> ComparisonResult {
let allocated = allocated_subgraphs.contains(&ipfs_hash.to_string());
let allocated = allocated_subgraphs.contains(ipfs_hash);

// Attempt to retrieve remote attestations for the given IPFS hash and block number
let remote_attestations = remote
Expand Down
2 changes: 1 addition & 1 deletion test-runner/src/invalid_block_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub async fn invalid_block_hash_test() {

let mut config = test_config();
config.radio_setup.sqlite_file_path = Some(db_path.clone());
config.radio_setup.topics = radio_topics.clone();
config.radio_setup.topics.clone_from(&radio_topics);

let mut test_sender_config = TestSenderConfig {
topics: test_sender_topics,
Expand Down
2 changes: 1 addition & 1 deletion test-runner/src/invalid_nonce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub async fn invalid_nonce_test() {

let mut config = test_config();
config.radio_setup.sqlite_file_path = Some(db_path.clone());
config.radio_setup.topics = radio_topics.clone();
config.radio_setup.topics.clone_from(&radio_topics);

let mut test_sender_config = TestSenderConfig {
topics: test_sender_topics,
Expand Down
2 changes: 1 addition & 1 deletion test-runner/src/invalid_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub async fn invalid_sender_test() {

let mut config = test_config();
config.radio_setup.sqlite_file_path = Some(db_path.clone());
config.radio_setup.topics = radio_topics.clone();
config.radio_setup.topics.clone_from(&radio_topics);
config.radio_setup.id_validation = IdentityValidation::RegisteredIndexer;

let mut test_sender_config = TestSenderConfig {
Expand Down
2 changes: 1 addition & 1 deletion test-runner/src/message_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub async fn send_and_receive_test() {

let mut config = test_config();
config.radio_setup.sqlite_file_path = Some(db_path.clone());
config.radio_setup.topics = radio_topics.clone();
config.radio_setup.topics.clone_from(&radio_topics);
config.radio_setup.topic_update_interval = 90;

let mut test_sender_config = TestSenderConfig {
Expand Down
2 changes: 1 addition & 1 deletion test-runner/src/poi_divergent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn poi_divergent_test() {

let mut config = test_config();
config.radio_setup.sqlite_file_path = Some(db_path.clone());
config.radio_setup.topics = radio_topics.clone();
config.radio_setup.topics.clone_from(&radio_topics);

let mut test_sender_config = TestSenderConfig {
topics: test_sender_topics,
Expand Down
2 changes: 1 addition & 1 deletion test-runner/src/poi_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn poi_match_test() {

let mut config = test_config();
config.radio_setup.sqlite_file_path = Some(db_path.clone());
config.radio_setup.topics = radio_topics.clone();
config.radio_setup.topics.clone_from(&radio_topics);

let mut test_sender_config = TestSenderConfig {
topics: test_sender_topics,
Expand Down
Loading

0 comments on commit 3e9d6a5

Please sign in to comment.