Skip to content

Commit

Permalink
update endpoint used to fix tls error
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkman committed Jun 14, 2024
1 parent 947f830 commit fc11788
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ use jito_geyser_protos::solana::geyser::{
};
use prost_types::Timestamp;
use solana_sdk::pubkey::Pubkey;
use tonic::{
transport::{ClientTlsConfig, Endpoint},
Streaming,
};
use tonic::{transport::channel::Endpoint, Streaming};
use uuid::Uuid;

#[derive(Parser, Debug)]
Expand Down Expand Up @@ -73,11 +70,6 @@ async fn main() {
println!("args: {args:?}");

let mut endpoint = Endpoint::from_str(&args.url).unwrap();

Check failure on line 72 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / test

variable does not need to be mutable

Check failure on line 72 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / lint

variable does not need to be mutable

Check failure on line 72 in cli/src/main.rs

View workflow job for this annotation

GitHub Actions / build

variable does not need to be mutable
if args.url.starts_with("https://") {
endpoint = endpoint
.tls_config(ClientTlsConfig::new())
.expect("create tls config");
}

let channel = endpoint.connect().await.expect("connects");

Expand Down

0 comments on commit fc11788

Please sign in to comment.