修复check次数过多的bug

This commit is contained in:
M09Ic 2022-11-09 17:28:51 +08:00
parent 70b9e25cf4
commit b600761ed8

View File

@ -116,7 +116,7 @@ func NewPool(ctx context.Context, config *pkg.Config, outputCh chan *baseline) (
if pool.reqCount%pool.checkPeriod == 0 {
go pool.check()
} else if pool.reqCount%pool.errPeriod == 0 {
} else if pool.failedCount%pool.errPeriod == 0 {
go pool.check()
}
}