From 9165e365e60dd90857c188fecf7fedf4d1cd74af Mon Sep 17 00:00:00 2001 From: kqjy Date: Tue, 23 Dec 2025 13:57:13 +0800 Subject: [PATCH] Comment cleanup --- app/replication.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/replication.py b/app/replication.py index 7cffcb9..5a4ad8a 100644 --- a/app/replication.py +++ b/app/replication.py @@ -303,10 +303,10 @@ class ReplicationManager: user_agent_extra=REPLICATION_USER_AGENT, connect_timeout=REPLICATION_CONNECT_TIMEOUT, read_timeout=REPLICATION_READ_TIMEOUT, - retries={'max_attempts': 2}, # Limited retries to prevent long hangs - signature_version='s3v4', # Force signature v4 for compatibility + retries={'max_attempts': 2}, + signature_version='s3v4', s3={ - 'addressing_style': 'path', # Use path-style addressing for compatibility + 'addressing_style': 'path', }, # Disable SDK automatic checksums - they cause SignatureDoesNotMatch errors # with S3-compatible servers that don't support CRC32 checksum headers @@ -318,7 +318,7 @@ class ReplicationManager: endpoint_url=conn.endpoint_url, aws_access_key_id=conn.access_key, aws_secret_access_key=conn.secret_key, - region_name=conn.region or 'us-east-1', # Default region if not set + region_name=conn.region or 'us-east-1', config=config, )