Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ chrono = "0.4.38"
bs58 = "0.5.1"
clap = { version = "4.5.4", features = ["derive", "env"] }
derivative = "2.2.0"
diesel = { version = "2.2.7", features = ["postgres", "serde_json", "numeric", "r2d2", "chrono", "i-implement-a-third-party-backend-and-opt-into-breaking-changes"] }
diesel = { version = "2.2.7", features = [
"postgres",
"serde_json",
"numeric",
"r2d2",
"chrono",
"i-implement-a-third-party-backend-and-opt-into-breaking-changes",
] }
diesel-derive-enum = { version = "2.1.0", features = ["postgres"] }
diesel-dynamic-schema = { version = "0.2.3", features = ["postgres"] }
diesel_derives = "2.2.3"
Expand Down
11 changes: 8 additions & 3 deletions graph/src/firehose/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ impl FirehoseEndpoint {

let endpoint_builder = match uri.scheme().unwrap_or(&Scheme::HTTP).as_str() {
"http" => Channel::builder(uri),
"https" => Channel::builder(uri)
.tls_config(ClientTlsConfig::new())
.expect("TLS config on this host is invalid"),
"https" => {
let mut tls = ClientTlsConfig::new();
tls = tls.with_native_roots();

Channel::builder(uri)
.tls_config(tls)
.expect("TLS config on this host is invalid")
}
_ => panic!("invalid uri scheme for firehose endpoint"),
};

Expand Down
Loading