Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed Aug 10, 2024
2 parents d143d11 + 9c2c258 commit a779dbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ impl StorageApi {
}

pub(crate) async fn new_write_client() -> Result<BigQueryWriteClient<Channel>, BQError> {
let tls_config = ClientTlsConfig::new().domain_name(BIGQUERY_STORAGE_API_DOMAIN);
let tls_config = ClientTlsConfig::new()
.domain_name(BIGQUERY_STORAGE_API_DOMAIN)
.with_native_roots();
let channel = Channel::from_static(BIG_QUERY_STORAGE_API_URL)
.tls_config(tls_config)?
.connect()
Expand Down

0 comments on commit a779dbe

Please sign in to comment.