diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-05-02 17:45:02 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-05-02 17:45:02 +0300 |
commit | 5432fa7d4bd9352dfa3466811c5e610a98a87a86 (patch) | |
tree | 4f9904123bb9941e99a19a728b3d5f0202327165 /internal/source | |
parent | 7c999a3c3411ce6b62cc7fba97f29343c9ef7806 (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.
Diffstat (limited to 'internal/source')
-rw-r--r-- | internal/source/gitlab/cache/entry.go | 2 |
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 } |