diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-12-05 20:49:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 19:49:41 +0100 |
commit | 12949de784e688451205333ebaf87ec0ca16927d (patch) | |
tree | 66982ac74e3eefbb2137a24d4889a6d682433e36 /tcpdialer.go | |
parent | writeBodyFixedSize: Only do an early flush if the reader is an *os.File (#1674) (diff) | |
download | fasthttp-12949de784e688451205333ebaf87ec0ca16927d.tar.gz fasthttp-12949de784e688451205333ebaf87ec0ca16927d.tar.bz2 fasthttp-12949de784e688451205333ebaf87ec0ca16927d.zip |
chore: Set max line length to 130 characters (#1676)
Diffstat (limited to 'tcpdialer.go')
-rw-r--r-- | tcpdialer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tcpdialer.go b/tcpdialer.go index 77bb569..7edd79f 100644 --- a/tcpdialer.go +++ b/tcpdialer.go @@ -306,7 +306,9 @@ func (d *TCPDialer) dial(addr string, dualStack bool, timeout time.Duration) (ne return nil, err } -func (d *TCPDialer) tryDial(network string, addr *net.TCPAddr, deadline time.Time, concurrencyCh chan struct{}) (net.Conn, error) { +func (d *TCPDialer) tryDial( + network string, addr *net.TCPAddr, deadline time.Time, concurrencyCh chan struct{}, +) (net.Conn, error) { timeout := time.Until(deadline) if timeout <= 0 { return nil, ErrDialTimeout |