Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewallace1979 committed Oct 9, 2023
1 parent c210b4f commit c40467f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions barman/clients/cloud_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ def parse_arguments(args=None):
parser.add_argument(
"--max-bandwidth",
type=check_size,
help="the maximum amount of data per second that should be used when uploading "
"the backup to either AWS S3 or Azure Blob Storage (default: no limit)",
help="the maximum amount of data to be uploaded per second when backing up to"
"either AWS S3 or Azure Blob Storage (default: no limit)",
default=None,
)
parser.add_argument(
Expand Down
4 changes: 2 additions & 2 deletions barman/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def write(self, buf):

def _throttle_upload(self, part_size):
"""
Throttles the upload according to the value of`self.max_bandwidth`.
Throttles the upload according to the value of `self.max_bandwidth`.
Waits until enough time has passed since the last upload to allow a new part to
Waits until enough time has passed since the last upload that a new part can
be uploaded without exceeding `self.max_bandwidth`. If sufficient time has
already passed then this function will return without waiting.
Expand Down

0 comments on commit c40467f

Please sign in to comment.