Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pfus committed Jan 15, 2025
1 parent f318b53 commit 223683b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gcs_storage_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ func (util *snowflakeGcsClient) getFileHeader(meta *fileMetadata, filename strin
client = meta.mockGcsClient
}
resp, err := client.Do(req)
println(err)
if err == io.EOF {
println("retrying because of EOF")
if err != nil && strings.HasSuffix(err.Error(), "EOF") {
logger.Debug("Retrying HEAD request because of EOF")
resp, err = client.Do(req)
}
return resp, err
Expand Down

0 comments on commit 223683b

Please sign in to comment.