diff --git a/tosfs/core.py b/tosfs/core.py index f36bb83..c37b62b 100644 --- a/tosfs/core.py +++ b/tosfs/core.py @@ -240,7 +240,7 @@ def __init__( self.tos_client = tos.TosClientV2( key, secret, - endpoint, + self.endpoint, region, security_token=session_token, max_retry_count=0,