mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 19:50:18 +00:00
修复check次数过多的bug
This commit is contained in:
parent
70b9e25cf4
commit
b600761ed8
@ -116,7 +116,7 @@ func NewPool(ctx context.Context, config *pkg.Config, outputCh chan *baseline) (
|
|||||||
|
|
||||||
if pool.reqCount%pool.checkPeriod == 0 {
|
if pool.reqCount%pool.checkPeriod == 0 {
|
||||||
go pool.check()
|
go pool.check()
|
||||||
} else if pool.reqCount%pool.errPeriod == 0 {
|
} else if pool.failedCount%pool.errPeriod == 0 {
|
||||||
go pool.check()
|
go pool.check()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user