chore: build with Go 1.26; use Go 1.25 features (#10570)

WaitGroup.Go and built-in gomaxprocs handling.

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2026-02-11 10:41:38 +00:00
committed by GitHub
parent 478d8a007d
commit dc2a77ab8e
44 changed files with 175 additions and 289 deletions
+6 -12
View File
@@ -110,24 +110,18 @@ func TestCloseOnBlockingSend(t *testing.T) {
wg := sync.WaitGroup{}
wg.Add(1)
go func() {
wg.Go(func() {
c.ClusterConfig(&ClusterConfig{}, nil)
wg.Done()
}()
})
wg.Add(1)
go func() {
wg.Go(func() {
c.Close(errManual)
wg.Done()
}()
})
// This simulates an error from ping timeout
wg.Add(1)
go func() {
wg.Go(func() {
c.internalClose(ErrTimeout)
wg.Done()
}()
})
done := make(chan struct{})
go func() {