Skip to content

Commit

Permalink
Infra: introduce retry func warpper
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Sep 12, 2024
1 parent 9adce4b commit 4fa43f9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
ListObjectType2Output,
ListObjectVersionsOutput,
PartInfo,
UploadPartCopyOutput,
UploadPartOutput,
)

Expand Down Expand Up @@ -1203,8 +1204,8 @@ def _call_upload_part_copy(
i: int = i,
brange_first: int = brange_first,
brange_last: int = brange_last,
) -> None:
self.tos_client.upload_part_copy(
) -> UploadPartCopyOutput:
return self.tos_client.upload_part_copy(
bucket=bucket2,
key=key2,
part_number=i,
Expand Down Expand Up @@ -1279,8 +1280,8 @@ def _copy_managed(

def _call_upload_part_copy(
i: int, brange_first: int, brange_last: int
) -> None:
self.tos_client.upload_part_copy(
) -> UploadPartCopyOutput:
return self.tos_client.upload_part_copy(
bucket=bucket2,
key=key2,
part_number=i + 1,
Expand Down

0 comments on commit 4fa43f9

Please sign in to comment.