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 8391e36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gcs_storage_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,17 @@ func (util *snowflakeGcsClient) getFileHeader(meta *fileMetadata, filename strin
client = meta.mockGcsClient
}
resp, err := client.Do(req)
println(err)
if err != nil {
println(err.Error())
}
if err == io.EOF {
println("retrying because of EOF")
resp, err = client.Do(req)
}
if err != nil && err.Error() == "EOF" {
println("retrying because of EOF 2")
resp, err = client.Do(req)
}
return resp, err
})
if err != nil {
Expand Down

0 comments on commit 8391e36

Please sign in to comment.