ApplyDefaults applies default values to any zero-value fields in the configuration. This ensures that partially configured structs get sensible defaults for missing fields.
()
| 206 | // ApplyDefaults applies default values to any zero-value fields in the configuration. |
| 207 | // This ensures that partially configured structs get sensible defaults for missing fields. |
| 208 | func (c *Config) ApplyDefaults() *Config { |
| 209 | return c.ApplyDefaultsWithPoolSize(0) |
| 210 | } |
| 211 | |
| 212 | // ApplyDefaultsWithPoolSize applies default values to any zero-value fields in the configuration, |
| 213 | // using the provided pool size to calculate worker defaults. |