Skip to content

Commit

Permalink
fix: update based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 28, 2024
1 parent b2f5f98 commit 6f8e22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/utils/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ func (p *Pool) Run(ctx context.Context) {
p.IsRunning = true

for i := 0; i < p.workerCount; i++ {
go p.work(poolCtx)
go p.runWorker(poolCtx)
}
}

func (p *Pool) work(ctx context.Context) {
func (p *Pool) runWorker(ctx context.Context) {
for {
select {
case job := <-p.jobChannel:
Expand Down

0 comments on commit 6f8e22d

Please sign in to comment.