From 27512a12a09775190cdb4a40f8f8adfdd6b65704 Mon Sep 17 00:00:00 2001 From: phuslu Date: Sun, 22 Sep 2024 21:55:17 +0800 Subject: [PATCH] disable client retry --- client.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index e91bb7d..f423f7a 100644 --- a/client.go +++ b/client.go @@ -4,7 +4,6 @@ import ( "errors" "net" "net/netip" - "os" "sync" "time" ) @@ -40,9 +39,9 @@ type Client struct { // a Response for the provided Request. func (c *Client) Exchange(req, resp *Message) (err error) { err = c.exchange(req, resp) - if err != nil && os.IsTimeout(err) { - err = c.exchange(req, resp) - } + // if err != nil && os.IsTimeout(err) { + // err = c.exchange(req, resp) + // } return err }