mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-17 02:21:04 +00:00
remove redundancy code
This commit is contained in:
parent
f85611741e
commit
32664cb140
@ -5,13 +5,11 @@ import "time"
|
|||||||
type workerStack struct {
|
type workerStack struct {
|
||||||
items []*goWorker
|
items []*goWorker
|
||||||
expiry []*goWorker
|
expiry []*goWorker
|
||||||
size int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func newWorkerStack(size int) *workerStack {
|
func newWorkerStack(size int) *workerStack {
|
||||||
return &workerStack{
|
return &workerStack{
|
||||||
items: make([]*goWorker, 0, size),
|
items: make([]*goWorker, 0, size),
|
||||||
size: size,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user