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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-05-02 17:45:02 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-05-02 17:45:02 +0300
commit5432fa7d4bd9352dfa3466811c5e610a98a87a86 (patch)
tree4f9904123bb9941e99a19a728b3d5f0202327165
parent7c999a3c3411ce6b62cc7fba97f29343c9ef7806 (diff)
Remove net.Error.Temporary usage from domain cache
net.Error.Temporary is deprecated and Temporary errors are not well-defined. This method should not be used.
-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
}