Skip to content

Commit

Permalink
disable client retry
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Sep 22, 2024
1 parent 69506fc commit 27512a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"net"
"net/netip"
"os"
"sync"
"time"
)
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 27512a1

Please sign in to comment.