Use go 1.25 waitgroup Go method instead of Add/Wait (#3265)
* Use go 1.25 waitgroup Go method instead of Add/Wait Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> * Disable java builder test for now Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -36,11 +36,9 @@ func New() Interface {
|
||||
}
|
||||
}
|
||||
func (g *GroupManager) Add(ctx context.Context, f func(context.Context)) {
|
||||
g.wg.Add(1)
|
||||
go func() {
|
||||
defer g.wg.Done()
|
||||
g.wg.Go(func() {
|
||||
f(ctx)
|
||||
}()
|
||||
})
|
||||
}
|
||||
|
||||
func (g *GroupManager) AddInformers(ctx context.Context, informers map[string]k8sCache.SharedIndexInformer) {
|
||||
|
||||
Reference in New Issue
Block a user