Skip to content

Commit

Permalink
fixed check for the ssl error
Browse files Browse the repository at this point in the history
  • Loading branch information
hafenkran committed Nov 17, 2024
1 parent 06ca23e commit 73c854a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/bigquery_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ google::cloud::Options BigqueryClient::OptionsGRPC() {
}

vector<BigqueryDatasetRef> BigqueryClient::GetDatasets() {
std::cout << "BigqueryClient::GetDatasets" << std::endl;
auto request = google::cloud::bigquery::v2::ListDatasetsRequest();
request.set_project_id(config.project_id);

Expand Down
2 changes: 1 addition & 1 deletion src/include/bigquery_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class BigqueryClient {

bool CheckSSLError(const google::cloud::Status &status) {
if (status.message().find("Problem with the SSL CA cert") != std::string::npos) {
if (!uses_custom_ca_bundle_path && !BigquerySettings::CurlCaBundlePath().empty()) {
if (!uses_custom_ca_bundle_path && BigquerySettings::CurlCaBundlePath().empty()) {
uses_custom_ca_bundle_path = true;
BigquerySettings::TryDetectCurlCaBundlePath();
return true;
Expand Down

0 comments on commit 73c854a

Please sign in to comment.