fix: 简易模式仅提升管理员默认并发到30

This commit is contained in:
神乐
2026-03-07 18:19:04 +08:00
parent bcb6444f89
commit b59c79c458
4 changed files with 112 additions and 5 deletions

View File

@@ -89,6 +89,10 @@ func InitEnt(cfg *config.Config) (*ent.Client, *sql.DB, error) {
_ = client.Close()
return nil, nil, err
}
if err := ensureSimpleModeAdminConcurrency(seedCtx, client); err != nil {
_ = client.Close()
return nil, nil, err
}
}
return client, drv.DB(), nil