diff --git a/internal/config/api/api.go b/internal/config/api/api.go index 04ec7fbe6..e8bee1ded 100644 --- a/internal/config/api/api.go +++ b/internal/config/api/api.go @@ -171,7 +171,6 @@ type Config struct { ReplicationPriority string `json:"replication_priority"` ReplicationMaxWorkers int `json:"replication_max_workers"` TransitionWorkers int `json:"transition_workers"` - ExpiryWorkers int `json:"expiry_workers"` StaleUploadsCleanupInterval time.Duration `json:"stale_uploads_cleanup_interval"` StaleUploadsExpiry time.Duration `json:"stale_uploads_expiry"` DeleteCleanupInterval time.Duration `json:"delete_cleanup_interval"` @@ -200,6 +199,7 @@ func LookupConfig(kvs config.KVS) (cfg Config, err error) { "extend_list_cache_life", apiReplicationWorkers, apiReplicationFailedWorkers, + "expiry_workers", } disableODirect := env.Get(EnvAPIDisableODirect, kvs.Get(apiDisableODirect)) == config.EnableOn diff --git a/internal/config/errors.go b/internal/config/errors.go index 24a2d0042..751152081 100644 --- a/internal/config/errors.go +++ b/internal/config/errors.go @@ -224,11 +224,6 @@ Examples: "", "MINIO_API_TRANSITION_WORKERS: should be >= GOMAXPROCS/2", ) - ErrInvalidExpiryWorkersValue = newErrFn( - "Invalid value for expiry workers", - "", - "MINIO_API_EXPIRY_WORKERS: should be between 1 and 500", - ) ErrInvalidBatchKeyRotationWorkersWait = newErrFn( "Invalid value for batch key rotation workers wait", "Please input a non-negative duration",