From 32664cb1408f8d9ffa7236335025a4cd94a306ce Mon Sep 17 00:00:00 2001 From: "Z.Q.K" Date: Sat, 25 Jun 2022 12:15:48 +0800 Subject: [PATCH] remove redundancy code --- worker_stack.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/worker_stack.go b/worker_stack.go index f6c2f40..3f6aa1d 100644 --- a/worker_stack.go +++ b/worker_stack.go @@ -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, } }