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 9ad0cd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gcs_storage_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ 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 {
println(err.Error())
}
if err != nil && strings.HasSuffix(err.Error(), "EOF") {
println("retrying because of EOF 2")
resp, err = client.Do(req)
}
return resp, err
Expand Down

0 comments on commit 9ad0cd8

Please sign in to comment.