From 049151ce57dbe8d70b98e0963dc2baed42efd2ed Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Thu, 22 Aug 2024 13:53:10 +0530 Subject: [PATCH] Revert "Using errors.Is instead of errors.As for checking dns error" This reverts commit 992a9e321ea988e5cf13ce0900b3834d04d23f33. --- ably/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ably/error.go b/ably/error.go index b467d7b3..623422ce 100644 --- a/ably/error.go +++ b/ably/error.go @@ -155,7 +155,7 @@ func isTimeoutOrDnsErr(err error) bool { } } var dnsErr *net.DNSError - return errors.Is(err, dnsErr) // RSC15l1 + return errors.As(err, &dnsErr) // RSC15l1 } func checkValidHTTPResponse(resp *http.Response) error {