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 f95a4f3 commit 904c982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def mkdir(self, path: str, create_parents: bool = True, **kwargs: Any) -> None:
raise FileNotFoundError(f"Parent directory {parent} does not exist.")
else:
retryable_func(
self.tos_client.put_object(bucket, key.rstrip("/") + "/"),
lambda: self.tos_client.put_object(bucket, key.rstrip("/") + "/"),
max_retry_num=self.max_retry_num,
)

Expand Down

0 comments on commit 904c982

Please sign in to comment.