Skip to content

Commit

Permalink
remove redundancy code
Browse files Browse the repository at this point in the history
  • Loading branch information
zqkgo authored and panjf2000 committed Jun 27, 2022
1 parent f856117 commit 32664cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions worker_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 32664cb

Please # to comment.