Skip to content

Commit

Permalink
Adds protobuf-compiler to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mango-dee committed Dec 9, 2024
1 parent f88ac48 commit 5e18e48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Linux Packages
run: |
sudo apt-get update -y
sudo apt-get install libssl-dev openssl -y
sudo apt-get install libssl-dev openssl protobuf-compiler -y
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clippy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Linux Packages
run: |
sudo apt-get update -y
sudo apt-get install libssl-dev openssl -y
sudo apt-get install libssl-dev openssl protobuf-compiler -y
- uses: actions/checkout@v4

Expand Down
8 changes: 2 additions & 6 deletions quic-forward-proxy/src/outbound/tx_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ use quinn::{
use solana_lite_rpc_core::network_utils::apply_gso_workaround;

Check warning on line 14 in quic-forward-proxy/src/outbound/tx_forward.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/quic-forward-proxy/src/outbound/tx_forward.rs

Check warning on line 14 in quic-forward-proxy/src/outbound/tx_forward.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/quic-forward-proxy/src/outbound/tx_forward.rs
use solana_sdk::quic::QUIC_MAX_TIMEOUT;
use solana_streamer::nonblocking::quic::ALPN_TPU_PROTOCOL_ID;
use solana_streamer::tls_certificates::new_self_signed_tls_certificate;
use std::collections::HashMap;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;

Check warning on line 20 in quic-forward-proxy/src/outbound/tx_forward.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/quic-forward-proxy/src/outbound/tx_forward.rs

Check warning on line 20 in quic-forward-proxy/src/outbound/tx_forward.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/quic-forward-proxy/src/outbound/tx_forward.rs
use std::time::{Duration, Instant};
use solana_streamer::tls_certificates::new_dummy_x509_certificate;
use tokio::sync::mpsc::Receiver;
use tokio::sync::RwLock;

Expand Down Expand Up @@ -267,11 +267,7 @@ async fn new_endpoint_with_validator_identity(validator_identity: ValidatorIdent
validator_identity
);
// the counterpart of this function is get_remote_pubkey+get_pubkey_from_tls_certificate
let (certificate, key) = new_self_signed_tls_certificate(
&validator_identity.get_keypair_for_tls(),
IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)),
)
.expect("Failed to initialize QUIC connection certificates");
let (certificate, key) = new_dummy_x509_certificate(validator_identity.as_ref());

Check failure on line 270 in quic-forward-proxy/src/outbound/tx_forward.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

no method named `as_ref` found for struct `ValidatorIdentity` in the current scope

create_tpu_client_endpoint(certificate, key)
}
Expand Down

0 comments on commit 5e18e48

Please sign in to comment.