[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-08-03 14:20:54 +00:00
parent 87e7d3e625
commit 9894bbb1b4

View file

@ -98,10 +98,9 @@ int CmdSync::execute(std::string& output) {
Context::getContext().config.get("sync.aws.secret_access_key");
std::string aws_default_credentials =
Context::getContext().config.get("sync.aws.default_credentials");
std::string aws_endpoint_url =
Context::getContext().config.get("sync.aws.endpoint_url");
std::string aws_endpoint_url = Context::getContext().config.get("sync.aws.endpoint_url");
bool aws_force_path_style =
Context::getContext().config.getBoolean("sync.aws.force_path_style");
Context::getContext().config.getBoolean("sync.aws.force_path_style");
if (encryption_secret == "") {
throw std::string("sync.encryption_secret is required");
}
@ -136,7 +135,8 @@ int CmdSync::execute(std::string& output) {
avoid_snapshots, aws_endpoint_url, aws_force_path_style);
} else {
replica->sync_to_aws_with_default_creds(aws_region, aws_bucket, encryption_secret,
avoid_snapshots, aws_endpoint_url, aws_force_path_style);
avoid_snapshots, aws_endpoint_url,
aws_force_path_style);
}
} else if (gcp_bucket != "") {