ApplyDefaultsWithPoolSize applies default values to any zero-value fields in the configuration, using the provided pool size to calculate worker defaults. This ensures that partially configured structs get sensible defaults for missing fields.
(poolSize int)
| 213 | // using the provided pool size to calculate worker defaults. |
| 214 | // This ensures that partially configured structs get sensible defaults for missing fields. |
| 215 | func (c *Config) ApplyDefaultsWithPoolSize(poolSize int) *Config { |
| 216 | return c.ApplyDefaultsWithPoolConfig(poolSize, 0) |
| 217 | } |
| 218 | |
| 219 | // ApplyDefaultsWithPoolConfig applies default values to any zero-value fields in the configuration, |
| 220 | // using the provided pool size and max active connections to calculate worker and queue defaults. |