mirror of https://github.com/panjf2000/ants.git
update periodic time of cleaning workers
This commit is contained in:
parent
b1e6e05756
commit
6ba16371e6
2
ants.go
2
ants.go
|
@ -32,7 +32,7 @@ const (
|
||||||
DefaultAntsPoolSize = math.MaxInt32
|
DefaultAntsPoolSize = math.MaxInt32
|
||||||
|
|
||||||
// DefaultCleanIntervalTime is the interval time to clean up goroutines.
|
// DefaultCleanIntervalTime is the interval time to clean up goroutines.
|
||||||
DefaultCleanIntervalTime = 10
|
DefaultCleanIntervalTime = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
// Init a instance pool when importing ants.
|
// Init a instance pool when importing ants.
|
||||||
|
|
Loading…
Reference in New Issue