From: qydysky Date: Tue, 8 Jun 2021 13:00:08 +0000 (+0800) Subject: remove unnecessary func X-Git-Tag: v0.5.21 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=cd29c6ead60eaec59f2907e7b23259684b0b7959;p=part%2F.git remove unnecessary func --- diff --git a/reqf/Reqf.go b/reqf/Reqf.go index be80110..d5a13dd 100644 --- a/reqf/Reqf.go +++ b/reqf/Reqf.go @@ -357,10 +357,6 @@ func IsTimeout(e error) bool { return errors.Is(e, context.DeadlineExceeded) || errors.Is(e, ConnectTimeoutErr) || errors.Is(e, ReadTimeoutErr) } -func IsDnsErr(e error) bool { - return e != nil && strings.Contains(e.Error(), "lookup") -} - func IsCancel(e error) bool { return errors.Is(e, context.Canceled) } \ No newline at end of file