Skip to content

Commit 8bd3530

Browse files
committed
thx gemini
1 parent 9d772d5 commit 8bd3530

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyiceberg/io/fsspec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ class StaticTokenCredential(AsyncTokenCredential):
212212

213213
def __init__(self, token_string: str) -> None:
214214
self._token = token_string
215-
# Set expiration 1 hour from now
216-
self._expires_on = int(time.time()) + self._DEFAULT_EXPIRY_SECONDS
217215

218216
async def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken:
219-
return AccessToken(self._token, self._expires_on)
217+
# Set expiration 1 hour from now
218+
expires_on = int(time.time()) + self._DEFAULT_EXPIRY_SECONDS
219+
return AccessToken(self._token, expires_on)
220220

221221
if token := properties.get(ADLS_TOKEN):
222222
credential = StaticTokenCredential(token)

0 commit comments

Comments
 (0)