Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2022-05-04 22:40:54 +0300
committerJaime Martinez <jmartinez@gitlab.com>2022-05-04 22:40:54 +0300
commit3720fbbd8ffa98d26ce14e52d0ca880b8c85be3e (patch)
tree9883d4898db091a5b03392b37a9179319b1a2ade
parente779df8d01b6b0f4bb1b056e252e293ff313afe9 (diff)
parent5432fa7d4bd9352dfa3466811c5e610a98a87a86 (diff)
Merge branch 'refactor/drop-neterr-temporary' into 'master'
refactor: remove net.Error.Temporary usage from domain cache See merge request gitlab-org/gitlab-pages!763
-rw-r--r--internal/source/gitlab/cache/entry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/source/gitlab/cache/entry.go b/internal/source/gitlab/cache/entry.go
index ae06a215..2ba36596 100644
--- a/internal/source/gitlab/cache/entry.go
+++ b/internal/source/gitlab/cache/entry.go
@@ -101,7 +101,7 @@ func (e *Entry) domainExists() bool {
func (e *Entry) timedOut() bool {
err := e.response.Error
var neterr net.Error
- if ok := errors.As(err, &neterr); ok && (neterr.Timeout() || neterr.Temporary()) {
+ if ok := errors.As(err, &neterr); ok && neterr.Timeout() {
return true
}