Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
peakle committed Aug 7, 2023
1 parent 72f3e3d commit 8a3e17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Create(ctx context.Context, opts ...Option) *WorkerPool {
freeWorkers: ptrOfInt64(0),
taskCount: ptrOfInt64(0),
workersCapacity: ptrOfInt64(cfg.Capacity),
taskCh: make(chan func(context.Context), 2*cfg.Capacity),
taskCh: make(chan func(context.Context), cfg.TaskChLen),
cfg: &cfg,
shutdownCtx: ctx,
cancelFunc: cancel,
Expand Down

0 comments on commit 8a3e17a

Please sign in to comment.