mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
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…
x
Reference in New Issue
Block a user