Skip to content

Commit 2d6c9db

Browse files
committed
fix: incorrect RoundTrip implementation
1 parent d3758a5 commit 2d6c9db

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

configure.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ type clientAdapter struct {
1818

1919
// RoundTrip implements fasthttp.RoundTripper by calling the wrapped client's Do method
2020
func (ca *clientAdapter) RoundTrip(hc *fasthttp.HostClient, req *fasthttp.Request, resp *fasthttp.Response) (retry bool, err error) {
21-
err = ca.client.Do(req, resp)
22-
return false, err
21+
return ca.client.RoundTrip(hc, req, resp)
2322
}
2423

2524
func configureDialer(d *Dialer) {
@@ -124,4 +123,4 @@ func ConfigureServerAndConfig(s *fasthttp.Server, tlsConfig *tls.Config) *Server
124123
return s2
125124
}
126125

127-
var ErrNotAvailableStreams = errors.New("ran out of available streams")
126+
var ErrNotAvailableStreams = errors.New("ran out of available streams")

0 commit comments

Comments
 (0)