1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-05-10 09:05:41 +00:00

Merge branch '10.0'

This commit is contained in:
杨赫然 2023-07-25 12:05:28 +08:00
commit 2de172f6cc

View File

@ -25,6 +25,7 @@ func CreateWorkerPool(jobCB JobCB, n int) *WorkPool {
pool := new(WorkPool)
pool.jobCB = jobCB
pool.jobs = make(chan Job, 100)
pool.closer = z.NewCloser(n)
for i := 0; i < n; i++ {
go pool.run(pool.jobs)
}