Skip to content

Commit

Permalink
chore(deps): bump the google-cloud group with 2 updates (#18717)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: xxhZs <1060434431@qq.com>
  • Loading branch information
dependabot[bot] and xxhZs authored Sep 30, 2024
1 parent 17ea326 commit f0ad2d7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ futures = { version = "0.3", default-features = false, features = ["alloc"] }
futures-async-stream = { workspace = true }
gcp-bigquery-client = "0.18.0"
glob = "0.3"
google-cloud-bigquery = { version = "0.12.0", features = ["auth"] }
google-cloud-bigquery = { version = "0.13.0", features = ["auth"] }
google-cloud-gax = "0.19.0"
google-cloud-googleapis = { version = "0.15", features = ["pubsub", "bigquery"] }
google-cloud-pubsub = "0.28"
google-cloud-pubsub = "0.29"
http = "0.2"
iceberg = { workspace = true }
iceberg-catalog-glue = { workspace = true }
Expand Down
11 changes: 6 additions & 5 deletions src/connector/src/sink/big_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,11 +819,12 @@ impl StorageWriterClient {
}

fn bigquery_grpc_auth_config() -> google_cloud_auth::project::Config<'static> {
google_cloud_auth::project::Config {
audience: Some(google_cloud_bigquery::grpc::apiv1::conn_pool::AUDIENCE),
scopes: Some(&google_cloud_bigquery::grpc::apiv1::conn_pool::SCOPES),
sub: None,
}
let mut auth_config = google_cloud_auth::project::Config::default();
auth_config =
auth_config.with_audience(google_cloud_bigquery::grpc::apiv1::conn_pool::AUDIENCE);
auth_config =
auth_config.with_scopes(&google_cloud_bigquery::grpc::apiv1::conn_pool::SCOPES);
auth_config
}
}

Expand Down
8 changes: 3 additions & 5 deletions src/connector/src/sink/google_pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,9 @@ impl GooglePubSubSinkWriter {
sink_from_name: String,
) -> Result<Self> {
let environment = if let Some(ref cred) = config.credentials {
let auth_config = project::Config {
audience: Some(apiv1::conn_pool::AUDIENCE),
scopes: Some(&apiv1::conn_pool::SCOPES),
sub: None,
};
let mut auth_config = project::Config::default();
auth_config = auth_config.with_audience(apiv1::conn_pool::AUDIENCE);
auth_config = auth_config.with_scopes(&apiv1::conn_pool::SCOPES);
let cred_file = CredentialsFile::new_from_str(cred).await.map_err(|e| {
SinkError::GooglePubSub(
anyhow!(e).context("Failed to create Google Cloud Pub/Sub credentials file"),
Expand Down
2 changes: 1 addition & 1 deletion src/risedevtool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ clap = { workspace = true }
console = "0.15"
fs-err = "2.11.0"
glob = "0.3"
google-cloud-pubsub = "0.28"
google-cloud-pubsub = "0.29"
indicatif = "0.17"
itertools = { workspace = true }
rdkafka = { workspace = true }
Expand Down

0 comments on commit f0ad2d7

Please sign in to comment.