Skip to content

Commit

Permalink
fix(storage): add unknown host to retriable errors (#10619)
Browse files Browse the repository at this point in the history
* fix(storage): add unknown host to retriable errors

* use DNSError.Temporary
  • Loading branch information
BrennaEpp authored Sep 23, 2024
1 parent 2ca203a commit 4ec0452
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ func ShouldRetry(err error) bool {
return true
}
}
case *net.DNSError:
if e.IsTemporary {
return true
}
case interface{ Temporary() bool }:
if e.Temporary() {
return true
Expand Down

0 comments on commit 4ec0452

Please sign in to comment.