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