aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-04-28 18:06:45 +0300
committerGravatar GitHub <noreply@github.com> 2023-04-28 17:06:45 +0200
commitd2f0d172421bc4d00a91786e5db747637ae95508 (patch)
tree81986fe8e8918012419ba6e3800d0ec21f0f2e5f /examples
parentpprofhandler: use bytes.HasPrefix for consistency (#1543) (diff)
downloadfasthttp-d2f0d172421bc4d00a91786e5db747637ae95508.tar.gz
fasthttp-d2f0d172421bc4d00a91786e5db747637ae95508.tar.bz2
fasthttp-d2f0d172421bc4d00a91786e5db747637ae95508.zip
examples/client: fix error (#1545)
Diffstat (limited to 'examples')
-rw-r--r--examples/client/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client/client.go b/examples/client/client.go
index 10bfa20..617fd12 100644
--- a/examples/client/client.go
+++ b/examples/client/client.go
@@ -118,7 +118,7 @@ func httpConnError(err error) (string, bool) {
switch {
case errors.Is(err, fasthttp.ErrTimeout):
errName = "timeout"
- case errors.Is(err, fasthttp.ErrTimeout):
+ case errors.Is(err, fasthttp.ErrNoFreeConns):
errName = "conn_limit"
case errors.Is(err, fasthttp.ErrConnectionClosed):
errName = "conn_close"