Skip to content

Commit 8a83230

Browse files
authored
Update credentials.py to test removal of race condition in credentials (#643)
1 parent 9f47c80 commit 8a83230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcsfs/credentials.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def maybe_refresh(self):
180180
return # repeat to avoid race (but don't want lock in common case)
181181
logger.debug("GCS refresh")
182182
self.credentials.refresh(req)
183-
self.apply(self.heads)
183+
# https://github.com/fsspec/filesystem_spec/issues/565
184+
self.credentials.apply(self.heads)
184185

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

0 commit comments

Comments
 (0)