Skip to content

Commit

Permalink
shorter pg_port definition
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoBjorn committed Jan 17, 2025
1 parent cf8654b commit fd09d31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compute_tools/src/bin/fast_import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,10 @@ pub(crate) async fn main() -> anyhow::Result<()> {
let working_directory = args.working_directory;
let pg_bin_dir = args.pg_bin_dir;
let pg_lib_dir = args.pg_lib_dir;
let pg_port = if args.pg_port.is_some() {
args.pg_port.unwrap()
} else {
let pg_port = args.pg_port.unwrap_or_else(|| {
info!("pg_port not specified, using default 5432");
5432
};
});

// Initialize AWS clients only if s3_prefix is specified
let (aws_config, kms_client) = if args.s3_prefix.is_some() {
Expand Down

0 comments on commit fd09d31

Please sign in to comment.