aboutsummaryrefslogtreecommitdiff
path: root/prefork
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-03-02 17:19:05 +0200
committerGravatar GitHub <noreply@github.com> 2024-03-02 16:19:05 +0100
commit3166afd835a00486c918f1d3149696855897c923 (patch)
tree9ba64d0f8f16688512cf83a77787f70b0f56b81c /prefork
parentchore(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#1725) (diff)
downloadfasthttp-3166afd835a00486c918f1d3149696855897c923.tar.gz
fasthttp-3166afd835a00486c918f1d3149696855897c923.tar.bz2
fasthttp-3166afd835a00486c918f1d3149696855897c923.zip
Enable few gocritic checks; fix up issues (#1728)
Diffstat (limited to 'prefork')
-rw-r--r--prefork/prefork.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/prefork/prefork.go b/prefork/prefork.go
index 225912d..d40bded 100644
--- a/prefork/prefork.go
+++ b/prefork/prefork.go
@@ -210,7 +210,8 @@ func (p *Prefork) prefork(addr string) (err error) {
p.logger().Printf("one of the child prefork processes exited with "+
"error: %v", sig.err)
- if exitedProcs++; exitedProcs > p.RecoverThreshold {
+ exitedProcs++
+ if exitedProcs > p.RecoverThreshold {
p.logger().Printf("child prefork processes exit too many times, "+
"which exceeds the value of RecoverThreshold(%d), "+
"exiting the master process.\n", exitedProcs)