Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Aug 19, 2024
1 parent fe4d2ac commit 288e2ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions src/connector/src/sink/iceberg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ impl IcebergConfig {
.map_err(|e| SinkError::Iceberg(anyhow!(e)))
}

async fn create_catalog_v2(&self) -> ConnectorResult<Arc<dyn CatalogV2>> {
fn create_catalog_v2(&self) -> ConnectorResult<Arc<dyn CatalogV2>> {
match self.catalog_type() {
"storage" => {
let config = StorageCatalogConfig::builder()
Expand Down Expand Up @@ -570,7 +570,6 @@ impl IcebergConfig {
pub async fn load_table_v2(&self) -> ConnectorResult<TableV2> {
let catalog = self
.create_catalog_v2()
.await
.context("Unable to load iceberg catalog")?;

let table_id = self
Expand Down

0 comments on commit 288e2ae

Please sign in to comment.