refactor: replace gperr.Builder with gperr.Group for concurrent error handling

- Updated various files to utilize gperr.Group for cleaner concurrency error handling.
- Removed sync.WaitGroup usage, simplifying the code structure.
- Ensured consistent error reporting across different components.
This commit is contained in:
yusing
2026-01-06 16:29:35 +08:00
parent 724617a2b3
commit 424398442b
9 changed files with 62 additions and 70 deletions

View File

@@ -76,7 +76,8 @@ func (c *IdlewatcherConfig) Validate() gperr.Error {
c.valErr = nil
return nil
}
errs := gperr.NewBuilder()
var errs gperr.Builder
errs.AddRange(
c.validateProvider(),
c.validateTimeouts(),