Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowlandev authored and drmingdrmer committed Nov 16, 2024
1 parent 663bbfb commit 977a93b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/query/storages/iceberg/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,13 @@ impl IcebergCatalog {
.build();

// Due to the AWS Glue catalog creation being asynchronous, forced to run it a bit different way, so we don't have to make the outer function asynchronous.
let ctl = databend_common_base::runtime::block_on(GlueCatalog::new(cfg))
.map_err(|err| {
ErrorCode::BadArguments(format!(
"There was an error building the AWS Glue catalog: {err:?}"
))
})?;
let ctl = databend_common_base::runtime::block_on(GlueCatalog::new(cfg)).map_err(
|err| {
ErrorCode::BadArguments(format!(
"There was an error building the AWS Glue catalog: {err:?}"
))
},
)?;
Arc::new(ctl)
}
};
Expand Down

0 comments on commit 977a93b

Please sign in to comment.