aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar LeoSun <379978424@qq.com> 2023-04-05 04:48:48 +0800
committerGravatar GitHub <noreply@github.com> 2023-04-04 13:48:48 -0700
commit239cce45b1321b40b0cd4d3542b48c986b9f3c9b (patch)
tree49578b3fabf4f22c57385f59ed5537fea33788fa /client.go
parentremove (#1534) (diff)
downloadfasthttp-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.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.go b/client.go
index 9a2ef85..f0ce67f 100644
--- a/client.go
+++ b/client.go
@@ -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)
}