diff options
author | LeoSun <379978424@qq.com> | 2023-04-05 04:48:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 13:48:48 -0700 |
commit | 239cce45b1321b40b0cd4d3542b48c986b9f3c9b (patch) | |
tree | 49578b3fabf4f22c57385f59ed5537fea33788fa /client.go | |
parent | remove (#1534) (diff) | |
download | fasthttp-239cce45b1321b40b0cd4d3542b48c986b9f3c9b.tar.gz fasthttp-239cce45b1321b40b0cd4d3542b48c986b9f3c9b.tar.bz2 fasthttp-239cce45b1321b40b0cd4d3542b48c986b9f3c9b.zip |
format : update some codes style (#1533)
* update some codes style
* update adaptor.go and client.go
* Update fasthttpproxy/http.go
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
---------
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1617,8 +1617,7 @@ func (c *HostClient) dialConnFor(w *wantConn) { } cc := acquireClientConn(conn) - delivered := w.tryDeliver(cc, nil) - if !delivered { + if !w.tryDeliver(cc, nil) { // not delivered, return idle connection c.releaseConn(cc) } |