mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
fix: workers.New err must be returned (#17208)
This commit is contained in:
parent
07927e032a
commit
fd2959fa3a
@ -153,7 +153,9 @@ func initBackgroundExpiry(ctx context.Context, objectAPI ObjectLayer) {
|
||||
globalExpiryState = newExpiryState()
|
||||
|
||||
workerSize, _ := strconv.Atoi(env.Get("_MINIO_ILM_EXPIRY_WORKERS", strconv.Itoa((runtime.GOMAXPROCS(0)+1)/2)))
|
||||
|
||||
if workerSize == 0 {
|
||||
workerSize = 4
|
||||
}
|
||||
ewk, err := workers.New(workerSize)
|
||||
if err != nil {
|
||||
logger.LogIf(ctx, err)
|
||||
|
Loading…
Reference in New Issue
Block a user