From d2f0d172421bc4d00a91786e5db747637ae95508 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 28 Apr 2023 18:06:45 +0300 Subject: [PATCH] examples/client: fix error (#1545) --- examples/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"