Skip to content

Commit

Permalink
refactor: rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 28, 2024
1 parent 7ef45c8 commit b2f5f98
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.worker(poolCtx)
go p.work(poolCtx)
}
}

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

0 comments on commit b2f5f98

Please sign in to comment.