diff --git a/api/authentication.go b/api/authentication.go index 86fe904..9060e29 100644 --- a/api/authentication.go +++ b/api/authentication.go @@ -433,8 +433,7 @@ func updateAPIKeys(_ context.Context, _ interface{}) error { } if hasExpiredKeys { - name := "api-key-cleanup" - module.StartLowPriorityMicroTask(&name, func(ctx context.Context) error { + module.StartLowPriorityMicroTask("api key cleanup", 0, func(ctx context.Context) error { if err := config.SetConfigOption(CfgAPIKeys, validAPIKeys); err != nil { log.Errorf("api: failed to remove expired API keys: %s", err) } else {