Skip to content

Commit

Permalink
Update credentials.py to test removal of race condition in credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Flinz authored Oct 7, 2024
1 parent 9f47c80 commit f5e601d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcsfs/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def maybe_refresh(self):
return # repeat to avoid race (but don't want lock in common case)
logger.debug("GCS refresh")
self.credentials.refresh(req)
self.apply(self.heads)
# https://github.com/fsspec/filesystem_spec/issues/565
self.credentials.apply(self.heads)

def apply(self, out):
"""Insert credential headers in-place to a dictionary"""
Expand Down

0 comments on commit f5e601d

Please sign in to comment.