]> 127.0.0.1 Git - part/.git/commitdiff
remove unnecessary func v0.5.21
authorqydysky <qydysky@foxmail.com>
Tue, 8 Jun 2021 13:00:08 +0000 (21:00 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 8 Jun 2021 13:00:08 +0000 (21:00 +0800)
reqf/Reqf.go

index be80110668dded1d14f5663c12339a7062e7b13d..d5a13ddd17de2040e690bce915bf261547377ca9 100644 (file)
@@ -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