Skip to content

Commit

Permalink
examples/client: fix error (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Apr 28, 2023
1 parent 00c291b commit d2f0d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d2f0d17

Please sign in to comment.